We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b95bbf1 commit 8735036Copy full SHA for 8735036
src/session_server.c
@@ -3864,9 +3864,11 @@ nc_server_notif_cert_expiration_thread_stop(int wait)
3864
pthread_mutex_unlock(&server_opts.cert_exp_notif.lock);
3865
if (wait) {
3866
r = pthread_join(tid, NULL);
3867
- if (r) {
3868
- ERR(NULL, "Joining the certificate expiration notification thread failed (%s).", strerror(r));
3869
- }
+ } else {
+ r = pthread_detach(tid);
+ }
3870
+ if (r) {
3871
+ ERR(NULL, "Stopping the certificate expiration notification thread failed (%s).", strerror(r));
3872
}
3873
} else {
3874
/* thread is not running */
0 commit comments