mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 01:37:37 +01:00
Auth/Misc: Code cleanup.
*Random performance optimizations
This commit is contained in:
@@ -45,8 +45,7 @@ RealmSocket::~RealmSocket(void)
|
||||
// delete RealmSocketObject must never be called from our code.
|
||||
closing_ = true;
|
||||
|
||||
if (session_)
|
||||
delete session_;
|
||||
delete session_;
|
||||
|
||||
peer().close();
|
||||
}
|
||||
@@ -286,8 +285,7 @@ int RealmSocket::handle_input(ACE_HANDLE)
|
||||
|
||||
void RealmSocket::set_session(Session* session)
|
||||
{
|
||||
if (session_ != NULL)
|
||||
delete session_;
|
||||
delete session_;
|
||||
|
||||
session_ = session;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user