Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Log server shutdown using actionstream (#7589)
  • Loading branch information
ClobberXD authored and SmallJoker committed Jul 28, 2018
1 parent d7d451c commit e8aad2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server.cpp
Expand Up @@ -236,7 +236,6 @@ Server::Server(

Server::~Server()
{
infostream << "Server destructing" << std::endl;

// Send shutdown message
SendChatMessage(PEER_ID_INEXISTENT, ChatMessage(CHATMESSAGE_TYPE_ANNOUNCE,
Expand All @@ -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
Expand Down

0 comments on commit e8aad2e

Please sign in to comment.