summaryrefslogtreecommitdiff
path: root/src/account-server/accounthandler.cpp
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-09-23 12:55:09 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-09-23 12:55:09 +0000
commit5618f4890df5eb9ea91eb73a7a7dd7df745863a6 (patch)
tree07873952b5f3f7efae06b3045692e2d90bd45a58 /src/account-server/accounthandler.cpp
parent203ed8e40105c17d300b12ee461327cb4416acf2 (diff)
downloadmanaserv-5618f4890df5eb9ea91eb73a7a7dd7df745863a6.tar.gz
manaserv-5618f4890df5eb9ea91eb73a7a7dd7df745863a6.tar.bz2
manaserv-5618f4890df5eb9ea91eb73a7a7dd7df745863a6.tar.xz
manaserv-5618f4890df5eb9ea91eb73a7a7dd7df745863a6.zip
Robustified code with respect to insertion failures.
Diffstat (limited to 'src/account-server/accounthandler.cpp')
-rw-r--r--src/account-server/accounthandler.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/account-server/accounthandler.cpp b/src/account-server/accounthandler.cpp
index 77e66660..2a046de6 100644
--- a/src/account-server/accounthandler.cpp
+++ b/src/account-server/accounthandler.cpp
@@ -201,7 +201,7 @@ AccountHandler::handleLoginMessage(AccountClient &computer, MessageIn &msg)
if (getClientNumber() >= MAX_CLIENTS )
{
- reply.writeByte(LOGIN_SERVER_FULL);
+ reply.writeByte(ERRMSG_SERVER_FULL);
computer.send(reply);
return;
}
@@ -731,7 +731,8 @@ AccountHandler::tokenMatched(AccountClient *computer, int accountID)
void
AccountHandler::deletePendingClient(AccountClient* computer)
{
- MessageOut msg(APMSG_CONNECTION_TIMEDOUT);
+ MessageOut msg(APMSG_RECONNECT_RESPONSE);
+ msg.writeByte(ERRMSG_TIME_OUT);
computer->disconnect(msg);
// The computer will be deleted when the disconnect event is processed
}