summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/tcptls.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/tcptls.c b/main/tcptls.c
index 8159a49f0..7b32a351a 100644
--- a/main/tcptls.c
+++ b/main/tcptls.c
@@ -542,6 +542,7 @@ void ast_tcptls_server_stop(struct ast_tcptls_session_args *desc)
pthread_cancel(desc->master);
pthread_kill(desc->master, SIGURG);
pthread_join(desc->master, NULL);
+ desc->master = AST_PTHREADT_NULL;
}
if (desc->accept_fd != -1)
close(desc->accept_fd);