summaryrefslogtreecommitdiff
path: root/src/game-server
diff options
context:
space:
mode:
authorRogier Polak <rogier.l.a.polak@gmail.com>2007-03-20 00:18:21 +0000
committerRogier Polak <rogier.l.a.polak@gmail.com>2007-03-20 00:18:21 +0000
commited0e4fd21544d2c3e0a8494c6f48fc905afda04f (patch)
tree2c3cc326e5797670e137bdf610f3ec751c92c017 /src/game-server
parentd0fa28b3820551adf5f4075355b05d19d7c43806 (diff)
downloadmanaserv-ed0e4fd21544d2c3e0a8494c6f48fc905afda04f.tar.gz
manaserv-ed0e4fd21544d2c3e0a8494c6f48fc905afda04f.tar.bz2
manaserv-ed0e4fd21544d2c3e0a8494c6f48fc905afda04f.tar.xz
manaserv-ed0e4fd21544d2c3e0a8494c6f48fc905afda04f.zip
Corrected a bug, that occurred when connecting to the game-server.
Diffstat (limited to 'src/game-server')
-rw-r--r--src/game-server/gamehandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game-server/gamehandler.cpp b/src/game-server/gamehandler.cpp
index a13edc2c..81f7a1e5 100644
--- a/src/game-server/gamehandler.cpp
+++ b/src/game-server/gamehandler.cpp
@@ -124,8 +124,8 @@ void GameHandler::processMessage(NetComputer *comp, MessageIn &message)
if (message.getId() != PGMSG_CONNECT) return;
std::string magic_token = message.readString(MAGIC_TOKEN_LENGTH);
+ computer.status = CLIENT_QUEUED; // Before the addPendingClient
mTokenCollector.addPendingClient(magic_token, &computer);
- computer.status = CLIENT_QUEUED;
return;
}
else if (computer.status != CLIENT_CONNECTED)