[sr-dev] [kamailio/kamailio] NATS Module not working (Issue #3253)
Victor Seva
notifications at github.com
Thu Sep 29 08:19:51 CEST 2022
@iliesh
Sorry is a structure not a pointer... try this, please
```
diff --git a/src/modules/nats/nats_mod.c b/src/modules/nats/nats_mod.c
index 852d0fbbab..51277e4ac0 100644
--- a/src/modules/nats/nats_mod.c
+++ b/src/modules/nats/nats_mod.c
@@ -588,7 +588,8 @@ int nats_destroy_workers()
LM_ERR("could not cleanup worker connection\n");
}
}
- uv_poll_stop(&pub_worker->poll);
+ if(pub_worker->poll.type != UV_UNKNOWN_HANDLE)
+ uv_poll_stop(&pub_worker->poll);
shm_free(pub_worker);
}
}
```
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3253#issuecomment-1261818315
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3253/1261818315 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20220928/1235f7cd/attachment.htm>
More information about the sr-dev
mailing list