X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=netconn.c;h=98d26019e0cc388918e0ded10da13bf22fc925f1;hp=ac481ca6df030e6d3d602ce11f0885880ab81b72;hb=2f5dfa4708db4112f682b31146a8db1d456a0482;hpb=b5f2509c170bf13f83cdb0e5d25f9cfc7469e986 diff --git a/netconn.c b/netconn.c index ac481ca6..98d26019 100755 --- a/netconn.c +++ b/netconn.c @@ -1529,7 +1529,7 @@ static void NetConn_ConnectionEstablished(lhnetsocket_t *mysocket, lhnetaddress_ #endif // Disconnect from the current server or stop demo playback if(cls.state == ca_connected || cls.demoplayback) - CL_Disconnect(false, NULL); + CL_Disconnect(); // allocate a net connection to keep track of things cls.netcon = NetConn_Open(mysocket, peeraddress); crypto = &cls.netcon->crypto; @@ -2488,7 +2488,7 @@ void NetConn_ClientFrame(void) NetConn_QueryQueueFrame(); #endif if (cls.netcon && host.realtime > cls.netcon->timeout && !sv.active) - CL_Disconnect(true, "Connection timed out"); + CL_DisconnectEx(true, "Connection timed out"); } static void NetConn_BuildChallengeString(char *buffer, int bufferlength)