(svn r18801) -Fix: in some cases error messages weren't properly sent to the client before closing the connection. As a result the client would say 'connection lost' when the cause was something completely different.

This commit is contained in:
rubidium
2010-01-14 21:48:42 +00:00
parent 83c8c562bb
commit f89d6bea0e
3 changed files with 10 additions and 5 deletions

View File

@@ -571,6 +571,8 @@ void NetworkCloseClient(NetworkClientSocket *cs, bool error)
SetWindowDirty(WC_CLIENT_LIST, 0);
}
cs->Send_Packets(true);
delete cs->GetInfo();
delete cs;
}