Flush buffer in case of a disconnect, which allows the server to use
buffered logging, which will be written when the client disappears.
This commit is contained in:
parent
76354bb08c
commit
ecbb1db2c9
@ -562,6 +562,7 @@ void* STKHost::mainLoop(void* self)
|
||||
else if (stk_event->getType() == EVENT_TYPE_DISCONNECTED)
|
||||
{
|
||||
Log::info("STKHost", "A client has just disconnected.");
|
||||
Log::flushBuffers();
|
||||
} // EVENT_TYPE_CONNECTED
|
||||
else if (stk_event->getType() == EVENT_TYPE_MESSAGE)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user