]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
DoSocketTimeouts and TickTimers only need to be called once a second. Why they were...
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 17 Aug 2006 21:08:09 +0000 (21:08 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 17 Aug 2006 21:08:09 +0000 (21:08 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4937 e03df62e-2008-0410-955e-edbf42e46eb7

src/inspircd.cpp

index c5f1a962fa2d2fafcac19bf881a72938d904a3bc..69f812d5547f7635ddfc2c272d73623560a4d9a6 100644 (file)
@@ -725,17 +725,16 @@ void InspIRCd::DoOneIteration(bool process_module_sockets)
                {
                        irc::whowas::MaintainWhoWas(TIME);
                }
+               Timers->TickTimers(TIME);
+               if (process_module_sockets)
+                       this->DoSocketTimeouts(TIME);
        }
 
        /* Process timeouts on module sockets each time around
         * the loop. There shouldnt be many module sockets, at
         * most, 20 or so, so this won't be much of a performance
         * hit at all.   
-        */ 
-       if (process_module_sockets)
-               this->DoSocketTimeouts(TIME);
-        
-       Timers->TickTimers(TIME);
+        */
         
        /* Call the socket engine to wait on the active
         * file descriptors. The socket engine has everything's