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:
hiker 2018-01-24 08:39:10 +11:00
parent 76354bb08c
commit ecbb1db2c9

View File

@ -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)
{