From 5618f4890df5eb9ea91eb73a7a7dd7df745863a6 Mon Sep 17 00:00:00 2001 From: Guillaume Melquiond Date: Sun, 23 Sep 2007 12:55:09 +0000 Subject: Robustified code with respect to insertion failures. --- src/account-server/accounthandler.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/account-server/accounthandler.cpp') 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 } -- cgit v1.2.3-60-g2f50