Skip to content

Commit

Permalink
wip, added logs
Browse files Browse the repository at this point in the history
  • Loading branch information
levb committed Oct 3, 2024
1 parent 5748339 commit b5b982b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/micro.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ void micro_release_on_endpoint_complete(void *closure)
bool free_ep = false;
bool finalize = false;

printf("<>/<> micro_release_on_endpoint_complete 1\n");

if (ep == NULL)
return;

Expand All @@ -270,6 +272,7 @@ void micro_release_on_endpoint_complete(void *closure)

// Force the subscription to be destroyed now.
natsSubscription_Destroy(sub);
printf("<>/<> micro_release_on_endpoint_complete 2\n");

_lock_service(m);

Expand Down Expand Up @@ -299,6 +302,7 @@ void micro_release_on_endpoint_complete(void *closure)
}

_unlock_service(m);
printf("<>/<> micro_release_on_endpoint_complete 3: finalize=%d, stopped=%d\n", finalize, m->stopped);

if (free_ep)
micro_free_endpoint(ep);
Expand Down

0 comments on commit b5b982b

Please sign in to comment.