Module: kamailio
Branch: master
Commit: 1c5fbac8c4314eb5a8c4f599de2b57f3840f2167
URL:
https://github.com/kamailio/kamailio/commit/1c5fbac8c4314eb5a8c4f599de2b57f…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2023-04-06T08:45:28+02:00
nats: fix build after a6caaabe4bc85e1b41d5bd9b0b8938069eace309
GH #3401
---
Modified: src/modules/nats/nats_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/1c5fbac8c4314eb5a8c4f599de2b57f…
Patch:
https://github.com/kamailio/kamailio/commit/1c5fbac8c4314eb5a8c4f599de2b57f…
---
diff --git a/src/modules/nats/nats_mod.c b/src/modules/nats/nats_mod.c
index 2f99225728..1edb0c2b29 100644
--- a/src/modules/nats/nats_mod.c
+++ b/src/modules/nats/nats_mod.c
@@ -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);