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