Merged revisions 320568 via svnmerge from
[asterisk/asterisk.git] / main / tcptls.c
index 8159a49..7b32a35 100644 (file)
@@ -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);