Calling initServerThread function cserver.cthreads(server-threads) times than MAX_EVENT_LOOPS(constant)
Former-commit-id: d6b4f994ad776efab6d647947fe1543359ec9401
This commit is contained in:
parent
e6b4537a5d
commit
04ad6b5078
@ -5695,7 +5695,7 @@ int main(int argc, char **argv) {
|
|||||||
|
|
||||||
validateConfiguration();
|
validateConfiguration();
|
||||||
|
|
||||||
for (int iel = 0; iel < MAX_EVENT_LOOPS; ++iel)
|
for (int iel = 0; iel < cserver.cthreads; ++iel)
|
||||||
{
|
{
|
||||||
initServerThread(g_pserver->rgthreadvar+iel, iel == IDX_EVENT_LOOP_MAIN);
|
initServerThread(g_pserver->rgthreadvar+iel, iel == IDX_EVENT_LOOP_MAIN);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user