@eschmidbauer maybe this?

diff --git a/src/modules/nats/nats_mod.c b/src/modules/nats/nats_mod.c
index 852d0fbbab..35e6b2612f 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, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <kamailio/kamailio/issues/3253/1260694269@github.com>