From: Jānis Rūcis Date: Tue, 30 Mar 2010 12:54:00 +0000 (+0300) Subject: IRC: tweak IRC_Frame X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a0747070ebdee753ba77eec9eb338cc9fd3363a6;p=xonotic%2Fdarkplaces.git IRC: tweak IRC_Frame --- diff --git a/irc.c b/irc.c index 151e1d81..fd1e2061 100644 --- a/irc.c +++ b/irc.c @@ -194,7 +194,10 @@ void IRC_Frame(void) switch (irc_socket->constatus) { case LHNETCONSTATUS_INPROGRESS: + break; + case LHNETCONSTATUS_DISCONNECTED: + IRC_Disconnect(); break; case LHNETCONSTATUS_ERROR: @@ -205,10 +208,6 @@ void IRC_Frame(void) case LHNETCONSTATUS_CONNECTED: IRC_WriteMessages(); IRC_ReadMessages(); - - if (irc_socket->constatus == LHNETCONSTATUS_DISCONNECTED) - IRC_Disconnect(); - break; } }