| Date: Mon, 6 Jan 2003 11:39:44 +0000
Fix for the infinite loop encountered when connecting to a dopewars server
which rejects the connection (caused by insufficient error checking).
Diffstat:
M src/curses_client/curses_client.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- |
| t@@ -548,7 +548,8 @@ static gboolean DoConnect(Player *Play, GString *errstr)
doneOK = FALSE;
} else {
SetNetworkBufferUserPasswdFunc(netbuf, SocksAuthFunc, NULL);
- while (netbuf->status != NBS_CONNECTED) {
+ doneOK = TRUE;
+ while (netbuf->status != NBS_CONNECTED && doneOK) {
DisplayConnectStatus(netbuf, oldstatus, oldsocks);
oldstatus = netbuf->status;
oldsocks = netbuf->sockstat; |