mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
Delay service exit until new configuration is loaded
This commit is contained in:
1 parent
84664a203b
commit
05f39246bf
1 file changed
+1
-1
+1
-1
@@ -685,7 +685,7 @@ int MODULEMAINFUNC (int argc, char** argv){
|
|||||||
memset(&defparam.sincr, 0, sizeof(defparam.sincr));
|
memset(&defparam.sincr, 0, sizeof(defparam.sincr));
|
||||||
if(isudp) while(!srv.fds.events)usleep(SLEEPTIME);
|
if(isudp) while(!srv.fds.events)usleep(SLEEPTIME);
|
||||||
}
|
}
|
||||||
|
while(!conf.timetoexit && conf.version <= srv.version) usleep(SLEEPTIME);
|
||||||
if(!srv.silent) srv.logfunc(&defparam, (unsigned char *)"Exiting thread");
|
if(!srv.silent) srv.logfunc(&defparam, (unsigned char *)"Exiting thread");
|
||||||
if(fp) fclose(fp);
|
if(fp) fclose(fp);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user