(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:
@@ -571,6 +571,8 @@ void NetworkCloseClient(NetworkClientSocket *cs, bool error)
|
||||
SetWindowDirty(WC_CLIENT_LIST, 0);
|
||||
}
|
||||
|
||||
cs->Send_Packets(true);
|
||||
|
||||
delete cs->GetInfo();
|
||||
delete cs;
|
||||
}
|
||||
|
Reference in New Issue
Block a user