Core/Network: Refactored socket code, moved common operations to base Socket class

This commit is contained in:
Shauren committed 2014-07-26 23:26:01 +02:00
1 parent 30e1342048
commit c1b1ba44ba
7 files changed
+350 -276

No files matched your search

+1 -1
View File
@@ -130,7 +130,7 @@ WorldSession::WorldSession(uint32 id, std::shared_ptr<WorldSocket> sock, Account
if (sock)
{
m_Address = sock->GetRemoteIpAddress();
m_Address = sock->GetRemoteIpAddress().to_string();
ResetTimeOutTime();
LoginDatabase.PExecute("UPDATE account SET online = 1 WHERE id = %u;", GetAccountId()); // One-time query
}