Skip to content

Commit

Permalink
TRY MORE, +16
Browse files Browse the repository at this point in the history
  • Loading branch information
levb committed Nov 3, 2024
1 parent 7d118e4 commit 96d655e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/micro.c
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,6 @@ _stop_service(microService *m, bool detachFromConnection, bool unsubscribe, bool
m->stopped = true;
else
alreadyStopped = true;
_unlock_service(m);

if (!alreadyStopped && unsubscribe)
{
Expand All @@ -343,7 +342,6 @@ _stop_service(microService *m, bool detachFromConnection, bool unsubscribe, bool
}
}

_lock_service(m);
if (detached)
m->refs--;
if ((m->refs > 0) && release)
Expand Down
2 changes: 1 addition & 1 deletion src/micro_endpoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ micro_stop_endpoint(microEndpoint *ep)
return microError_Wrapf(micro_ErrorFromStatus(s), "failed to drain subscription");

Check warning on line 113 in src/micro_endpoint.c

View check run for this annotation

Codecov / codecov/patch

src/micro_endpoint.c#L112-L113

Added lines #L112 - L113 were not covered by tests
}

printf("<>/<> Stoped endpoint %p, %s %s!!!!\n", ep, ep->m->cfg->Name, ep->subject); fflush(stdout);
printf("<>/<> Stopped endpoint %p, %s %s!!!!\n", ep, ep->m->cfg->Name, ep->subject); fflush(stdout);
return NULL;
}

Expand Down

0 comments on commit 96d655e

Please sign in to comment.