mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-13 16:07:45 +00:00
- Fixed: PacketGet() can receive WSAECONNRESET after startup is complete, so it needs to check
for a NULL before using NetMessage. SVN r2325 (trunk)
This commit is contained in:
parent
5a71dea746
commit
1c8397e86d
1 changed files with 10 additions and 2 deletions
|
@ -269,8 +269,16 @@ void PacketGet (void)
|
||||||
if (err == WSAECONNRESET)
|
if (err == WSAECONNRESET)
|
||||||
{ // The remote node aborted unexpectedly, so pretend it sent an exit packet
|
{ // The remote node aborted unexpectedly, so pretend it sent an exit packet
|
||||||
|
|
||||||
StartScreen->NetMessage ("The connection from %s was dropped.\n",
|
if (StartScreen != NULL)
|
||||||
players[sendplayer[node]].userinfo.netname);
|
{
|
||||||
|
StartScreen->NetMessage ("The connection from %s was dropped.\n",
|
||||||
|
players[sendplayer[node]].userinfo.netname);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Printf("The connection from %s was dropped.\n",
|
||||||
|
players[sendplayer[node]].userinfo.netname);
|
||||||
|
}
|
||||||
|
|
||||||
doomcom.data[0] = 0x80; // NCMD_EXIT
|
doomcom.data[0] = 0x80; // NCMD_EXIT
|
||||||
c = 1;
|
c = 1;
|
||||||
|
|
Loading…
Reference in a new issue