Cleans a possible error after a delGame call, might fixes a yet unknown bug.
parent
e66fa5ffb1
commit
421f46e526
|
@ -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);
|
||||
|
|
|
@ -52,7 +52,6 @@ namespace Lobby
|
|||
SERVER_ERROR = -32600,
|
||||
APPLICATION_ERROR = -32500,
|
||||
TRANSPORT_ERROR = -32300,
|
||||
|
||||
// Specific errors.
|
||||
UNSUPPORTED_ENCODING = -32701,
|
||||
METHOD_NOT_FOUND = -32601,
|
||||
|
|
Loading…
Reference in New Issue