From 05f39246bfd3599673d9e863c889861911065d61 Mon Sep 17 00:00:00 2001 From: z3APA3A <3APA3A@3proxy.ru> Date: Mon, 6 Jun 2016 18:01:51 +0300 Subject: [PATCH] Delay service exit until new configuration is loaded --- src/proxymain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proxymain.c b/src/proxymain.c index d6c1a37..4aea520 100644 --- a/src/proxymain.c +++ b/src/proxymain.c @@ -685,7 +685,7 @@ int MODULEMAINFUNC (int argc, char** argv){ memset(&defparam.sincr, 0, sizeof(defparam.sincr)); 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(fp) fclose(fp);