From a0747070ebdee753ba77eec9eb338cc9fd3363a6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C4=81nis=20R=C5=ABcis?= Date: Tue, 30 Mar 2010 15:54:00 +0300 Subject: [PATCH] IRC: tweak IRC_Frame --- irc.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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; } } -- 2.39.2