mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Log server shutdown using actionstream (#7589)
This commit is contained in:
@@ -236,7 +236,6 @@ Server::Server(
|
|||||||
|
|
||||||
Server::~Server()
|
Server::~Server()
|
||||||
{
|
{
|
||||||
infostream << "Server destructing" << std::endl;
|
|
||||||
|
|
||||||
// Send shutdown message
|
// Send shutdown message
|
||||||
SendChatMessage(PEER_ID_INEXISTENT, ChatMessage(CHATMESSAGE_TYPE_ANNOUNCE,
|
SendChatMessage(PEER_ID_INEXISTENT, ChatMessage(CHATMESSAGE_TYPE_ANNOUNCE,
|
||||||
@@ -262,6 +261,8 @@ Server::~Server()
|
|||||||
kick_msg, reconnect);
|
kick_msg, reconnect);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
actionstream << "Server: Shutting down" << std::endl;
|
||||||
|
|
||||||
// Do this before stopping the server in case mapgen callbacks need to access
|
// Do this before stopping the server in case mapgen callbacks need to access
|
||||||
// server-controlled resources (like ModStorages). Also do them before
|
// server-controlled resources (like ModStorages). Also do them before
|
||||||
// shutdown callbacks since they may modify state that is finalized in a
|
// shutdown callbacks since they may modify state that is finalized in a
|
||||||
|
Reference in New Issue
Block a user