Skip to content

Commit 7a33188

Browse files
committed
session client BUGFIX clear monitor flag on fail
1 parent 2add91c commit 7a33188

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/session_client.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3565,6 +3565,7 @@ nc_client_monitoring_thread_start(nc_client_monitoring_clb monitoring_clb, void
35653565
nc_client_monitoring_thread, ctx);
35663566
if (r) {
35673567
ERR(NULL, "Failed to create the client monitoring thread (%s).", strerror(r));
3568+
client_opts.monitoring_thread_data.thread_running = 0;
35683569
ret = 1;
35693570
goto cleanup;
35703571
}

0 commit comments

Comments
 (0)