Skip to content

Commit

Permalink
nats: fix the nats:connected event_route not being triggered on a suc…
Browse files Browse the repository at this point in the history
…cessful connect

(cherry picked from commit b3c8329)
  • Loading branch information
seven1240 authored and miconda committed Jul 4, 2022
1 parent 203d0ca commit 272649c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/modules/nats/nats_mod.c
Expand Up @@ -298,7 +298,10 @@ int _nats_pub_worker_proc(
!= NATS_OK) {
LM_ERR("could not connect to nats servers [%s]\n",
natsStatus_GetText(s));
} else {
connectedCB(worker->nc->conn, NULL);
}

s = natsOptions_SetEventLoop(worker->nc->opts, (void *)worker->uvLoop,
natsLibuv_Attach, natsLibuv_Read, natsLibuv_Write,
natsLibuv_Detach);
Expand Down

0 comments on commit 272649c

Please sign in to comment.