projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7d451c
)
Log server shutdown using actionstream (#7589)
author
ClobberXD
<ClobberXD@gmail.com>
Sat, 28 Jul 2018 10:58:02 +0000
(16:28 +0530)
committer
SmallJoker
<SmallJoker@users.noreply.github.com>
Sat, 28 Jul 2018 10:58:02 +0000
(12:58 +0200)
src/server.cpp
patch
|
blob
|
history
diff --git
a/src/server.cpp
b/src/server.cpp
index 38d2c5e94f1b69a2492abbbfaf823f1988a8c55b..04338df57b73d558af1386384608f949c9575bf5 100644
(file)
--- 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