mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 11:25:42 +00:00
feat(core): allow to debug KickPlayer() (#1549)
This commit is contained in:
@@ -119,8 +119,11 @@ bool WorldSocket::IsClosed(void) const
|
||||
return closing_;
|
||||
}
|
||||
|
||||
void WorldSocket::CloseSocket(void)
|
||||
void WorldSocket::CloseSocket(std::string const& reason)
|
||||
{
|
||||
if (!reason.empty())
|
||||
sLog->outDebug(LOG_FILTER_CLOSE_SOCKET, "Socket closed because of: %s", reason.c_str());
|
||||
|
||||
{
|
||||
ACE_GUARD (LockType, Guard, m_OutBufferLock);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user