Split server stop() and join()

For consistency with the other components, call stop() and join()
separately.

This allows to stop all components, then join them all.
This commit is contained in:
Romain Vimont
2023-02-22 18:41:22 +01:00
parent 2381a61798
commit 3015224135
3 changed files with 11 additions and 0 deletions

View File

@@ -698,6 +698,10 @@ end:
sc_file_pusher_destroy(&s->file_pusher);
}
if (server_started) {
sc_server_join(&s->server);
}
sc_server_destroy(&s->server);
return ret;