mirror of
https://github.com/3proxy/3proxy.git
synced 2025-02-23 10:35:40 +08:00
Close service only after config mutex unlocked on reload
This commit is contained in:
parent
c98621aeef
commit
bac19c9ae6
@ -876,9 +876,6 @@ int MODULEMAINFUNC (int argc, char** argv){
|
|||||||
if(isudp) while(!srv.fds.events)usleep(SLEEPTIME);
|
if(isudp) while(!srv.fds.events)usleep(SLEEPTIME);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!srv.silent) srv.logfunc(&defparam, (unsigned char *)"Exiting thread");
|
|
||||||
|
|
||||||
srvfree(&srv);
|
|
||||||
|
|
||||||
#ifndef STDMAIN
|
#ifndef STDMAIN
|
||||||
pthread_mutex_lock(&config_mutex);
|
pthread_mutex_lock(&config_mutex);
|
||||||
@ -888,6 +885,9 @@ int MODULEMAINFUNC (int argc, char** argv){
|
|||||||
pthread_mutex_unlock(&config_mutex);
|
pthread_mutex_unlock(&config_mutex);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if(!srv.silent) srv.logfunc(&defparam, (unsigned char *)"Exiting thread");
|
||||||
|
srvfree(&srv);
|
||||||
|
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
pthread_attr_destroy(&pa);
|
pthread_attr_destroy(&pa);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user