]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
IRC: tweak IRC_Frame
authorJānis Rūcis <parasti@gmail.com>
Tue, 30 Mar 2010 12:54:00 +0000 (15:54 +0300)
committernitroxis <nitroxis@wtwrp.de>
Fri, 10 Jan 2014 19:32:33 +0000 (20:32 +0100)
irc.c

diff --git a/irc.c b/irc.c
index 151e1d810d1958164a0f9e9ac0ccb057976c1f45..fd1e2061d5e811ecf11d66333c7bfc5e9f571031 100644 (file)
--- 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;
                }
        }