Преглед изворни кода

Revert "Delay service exit until new configuration is loaded"

This reverts commit 05f39246bfd3599673d9e863c889861911065d61.
z3APA3A пре 9 година
родитељ
комит
7742b08ec5
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/proxymain.c

+ 1 - 1
src/proxymain.c

@@ -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);