aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorClobberXD <ClobberXD@gmail.com>2018-07-28 16:28:02 +0530
committerSmallJoker <SmallJoker@users.noreply.github.com>2018-07-28 12:58:02 +0200
commite8aad2ee0078733b5981e1a6e47876a4b115007d (patch)
treecfa9537a92425311e391837083891c3d1ae912cf /src
parentd7d451c647f1fff7983178a9817888f4d0bab695 (diff)
downloadminetest-e8aad2ee0078733b5981e1a6e47876a4b115007d.tar.gz
minetest-e8aad2ee0078733b5981e1a6e47876a4b115007d.tar.bz2
minetest-e8aad2ee0078733b5981e1a6e47876a4b115007d.zip
Log server shutdown using actionstream (#7589)
Diffstat (limited to 'src')
-rw-r--r--src/server.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server.cpp b/src/server.cpp
index 38d2c5e94..04338df57 100644
--- a/src/server.cpp
+++ b/src/server.cpp
@@ -236,7 +236,6 @@ Server::Server(
Server::~Server()
{
- infostream << "Server destructing" << std::endl;
// Send shutdown message
SendChatMessage(PEER_ID_INEXISTENT, ChatMessage(CHATMESSAGE_TYPE_ANNOUNCE,
@@ -261,6 +260,8 @@ Server::~Server()
m_env->kickAllPlayers(SERVER_ACCESSDENIED_SHUTDOWN,
kick_msg, reconnect);
}
+
+ actionstream << "Server: Shutting down" << std::endl;
// Do this before stopping the server in case mapgen callbacks need to access
// server-controlled resources (like ModStorages). Also do them before