Skip to content

Commit

Permalink
nats: fix build after a6caaab
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxmaniac committed Apr 6, 2023
1 parent a6caaab commit 1c5fbac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/nats/nats_mod.c
Expand Up @@ -597,7 +597,7 @@ int nats_destroy_workers()
LM_ERR("could not cleanup worker connection\n");
}
}
if(pub_worker->poll != NULL) {
if(uv_is_active((uv_handle_t*)&pub_worker->poll)) {
uv_poll_stop(&pub_worker->poll);
}
shm_free(pub_worker);
Expand Down

0 comments on commit 1c5fbac

Please sign in to comment.