summaryrefslogtreecommitdiffstats
path: root/src/Net/ClientConnection.cpp
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2009-08-27 22:43:37 +0200
committerMatthias Schiffer <matthias@gamezock.de>2009-08-27 22:43:37 +0200
commitbf56fa726e1d6ed228fde841e6312d61122174da (patch)
tree662195b887f69615571957cbaedd5c07aee7eef6 /src/Net/ClientConnection.cpp
parent96b69222fa0c22d0eaefaae291e78913b2ae13e9 (diff)
downloadmad-bf56fa726e1d6ed228fde841e6312d61122174da.tar
mad-bf56fa726e1d6ed228fde841e6312d61122174da.zip
Connection: Noch eine Race Condition gefixt
Diffstat (limited to 'src/Net/ClientConnection.cpp')
-rw-r--r--src/Net/ClientConnection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Net/ClientConnection.cpp b/src/Net/ClientConnection.cpp
index 10a03f1..3d218e7 100644
--- a/src/Net/ClientConnection.cpp
+++ b/src/Net/ClientConnection.cpp
@@ -43,7 +43,7 @@ void ClientConnection::connect(const boost::asio::ip::tcp::endpoint &address) th
}
peer = address;
- _setState(CONNECT);
+ _setState(HANDSHAKE);
socket.lowest_layer().async_connect(address, boost::bind(&ClientConnection::handleConnect, boost::dynamic_pointer_cast<ClientConnection>(thisPtr.lock()), boost::asio::placeholders::error));
}