fix(Core/Groups): fix group enchanting level not resetting properly (#5501)

This commit is contained in:
Axel Cocat
2021-05-07 13:51:39 +02:00
committed by GitHub
parent acb7c6291c
commit 0e8e21b812
3 changed files with 15 additions and 5 deletions

View File

@@ -450,6 +450,10 @@ bool WorldSession::HandleSocketClosed()
return false;
}
bool WorldSession::IsSocketClosed() const {
return !m_Socket || m_Socket->IsClosed();
}
void WorldSession::HandleTeleportTimeout(bool updateInSessions)
{
// pussywizard: handle teleport ack timeout

View File

@@ -926,6 +926,7 @@ public: // opcodes handlers
void SetKicked(bool val) { _kicked = val; }
void SetShouldSetOfflineInDB(bool val) { _shouldSetOfflineInDB = val; }
bool GetShouldSetOfflineInDB() const { return _shouldSetOfflineInDB; }
bool IsSocketClosed() const;
/***
CALLBACKS