void InspIRCd::DoOneIteration(bool process_module_sockets)
{
- bool expire_run = false;
+ /*bool expire_run = false;
int activefds[MAX_DESCRIPTORS];
int incomingSockfd;
int in_port;
InspSocket* s_del = NULL;
unsigned int numberactive;
sockaddr_in sock_us; // our port number
- socklen_t uslen; // length of our port number
+ socklen_t uslen;*/ // length of our port number
/* time() seems to be a pretty expensive syscall, so avoid calling it too much.
* Once per loop iteration is pleanty.
* most, 20 or so, so this won't be much of a performance
* hit at all.
*/
- DoSocketTimeouts(TIME);
+ if (process_module_sockets)
+ DoSocketTimeouts(TIME);
TickTimers(TIME);
WritePID(Config->PID);
/* main loop, this never returns */
+ expire_run = false;
+
while (true)
{
DoOneIteration(true);