X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Finspircd.cpp;h=98418a967c7fd81c012c41fc3b506a6d2876da14;hb=747ae4b7a56cf94562b5b339ab3adc88653aa337;hp=6b7f8b07307c3cbc697b4a6c548bb1d82a40e316;hpb=65d0d4fb366ef527f7bde471fc809d48fc26ccf2;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 6b7f8b073..98418a967 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -606,7 +606,7 @@ bool InspIRCd::LoadModule(const char* filename) void InspIRCd::DoOneIteration(bool process_module_sockets) { - bool expire_run = false; + /*bool expire_run = false; int activefds[MAX_DESCRIPTORS]; int incomingSockfd; int in_port; @@ -615,7 +615,7 @@ void InspIRCd::DoOneIteration(bool process_module_sockets) 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. @@ -654,7 +654,8 @@ void InspIRCd::DoOneIteration(bool process_module_sockets) * 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); @@ -802,6 +803,8 @@ int InspIRCd::Run() WritePID(Config->PID); /* main loop, this never returns */ + expire_run = false; + while (true) { DoOneIteration(true);