Cleans a possible error after a delGame call, might fixes a yet unknown bug.

master
Rene Jochum 2011-04-29 14:30:03 +02:00
parent e66fa5ffb1
commit 421f46e526
2 changed files with 6 additions and 2 deletions

View File

@ -65,8 +65,13 @@ namespace Lobby
bson_buffer buffer[1];
if (gameId_ != 0)
{
// Ignore server errors here.
delGame();
if (delGame() != NO_ERROR)
{
freeError();
}
}
bson_buffer_init(buffer);
bson_append_int(buffer, "port", port);

View File

@ -52,7 +52,6 @@ namespace Lobby
SERVER_ERROR = -32600,
APPLICATION_ERROR = -32500,
TRANSPORT_ERROR = -32300,
// Specific errors.
UNSUPPORTED_ENCODING = -32701,
METHOD_NOT_FOUND = -32601,