mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-09 01:14:16 +00:00
net: Make a couple of SDLNet_GetError() report lines slightly less confusing
This commit is contained in:
parent
1ca8e1ca89
commit
69bc7422d8
@ -568,7 +568,7 @@ connection accept_connection_pending(std::vector<TCPsocket>& pending_sockets,
|
||||
|
||||
const int res = SDLNet_TCP_AddSocket(socket_set,psock);
|
||||
if(res == -1) {
|
||||
ERR_NW << "SDLNet_GetError() is " << SDLNet_GetError() << "\n";
|
||||
ERR_NW << "SDLNet_GetError(): " << SDLNet_GetError() << "\n";
|
||||
SDLNet_TCP_Close(psock);
|
||||
|
||||
throw network::error(_("Could not add socket to socket set"));
|
||||
@ -636,7 +636,7 @@ connection accept_connection()
|
||||
pending_sockets.push_back(sock);
|
||||
} else {
|
||||
ERR_NW << "Pending socket set is full! Disconnecting " << sock << " connection\n";
|
||||
ERR_NW << "SDLNet_GetError() is " << SDLNet_GetError() << "\n";
|
||||
ERR_NW << "SDLNet_GetError(): " << SDLNet_GetError() << "\n";
|
||||
|
||||
SDLNet_TCP_Close(sock);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user