diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-03-06 00:39:58 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-03-06 23:06:15 +0300 |
commit | 6b291b6515825f4ce0e09df5dec7ea1b619b63a7 (patch) | |
tree | f26a35a21cde34f45538a191b2196bf7c81d2693 /src/net/ea/network.cpp | |
parent | 833e498f54c1d33be94c09214315b368cccaec06 (diff) | |
download | mv-6b291b6515825f4ce0e09df5dec7ea1b619b63a7.tar.gz mv-6b291b6515825f4ce0e09df5dec7ea1b619b63a7.tar.bz2 mv-6b291b6515825f4ce0e09df5dec7ea1b619b63a7.tar.xz mv-6b291b6515825f4ce0e09df5dec7ea1b619b63a7.zip |
improve a bit different code.
Diffstat (limited to 'src/net/ea/network.cpp')
-rw-r--r-- | src/net/ea/network.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net/ea/network.cpp b/src/net/ea/network.cpp index c5ed9de57..128ca2996 100644 --- a/src/net/ea/network.cpp +++ b/src/net/ea/network.cpp @@ -32,6 +32,8 @@ #include "debug.h" +extern unsigned int mLastHost; + namespace Ea { @@ -89,7 +91,6 @@ bool Network::connect(ServerInfo server) if (mState != IDLE && mState != NET_ERROR) { logger->log1("Tried to connect an already connected socket!"); -// assert(false); return false; } @@ -217,6 +218,7 @@ bool Network::realConnect() return false; } + mLastHost = ipAddress.host; logger->log_r("Network::Started session with %s:%i", ipToString(ipAddress.host), ipAddress.port); |