On shutdown, only join EV thread if active
This commit is contained in:
parent
dfa34c4ab0
commit
36f86e78e6
|
|
@ -584,6 +584,7 @@ int main() {
|
||||||
|
|
||||||
// Exit
|
// Exit
|
||||||
cleanup:
|
cleanup:
|
||||||
|
if (facilities.evm_args.activate)
|
||||||
pthread_join(facilities.evcsn_service, NULL);
|
pthread_join(facilities.evcsn_service, NULL);
|
||||||
pthread_join(facilities.ca_service, NULL);
|
pthread_join(facilities.ca_service, NULL);
|
||||||
pthread_join(facilities.den_service, NULL);
|
pthread_join(facilities.den_service, NULL);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue