Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bevent, ua: move SHUTDOWN to BEVENT_CLASS_UA
Browse files Browse the repository at this point in the history
cspiel1 committed Aug 12, 2024
1 parent 98efdf6 commit a6df4a1
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bevent.c
Original file line number Diff line number Diff line change
@@ -91,9 +91,9 @@ static enum bevent_class bevent_class(enum ua_event ev)
case UA_EVENT_CREATE:
case UA_EVENT_MWI_NOTIFY:
case UA_EVENT_CUSTOM:
case UA_EVENT_SHUTDOWN:
return BEVENT_CLASS_UA;

case UA_EVENT_SHUTDOWN:
case UA_EVENT_EXIT:
return BEVENT_CLASS_APP;

2 changes: 1 addition & 1 deletion src/ua.c
Original file line number Diff line number Diff line change
@@ -426,7 +426,7 @@ unsigned ua_destroy(struct ua *ua)
list_unlink(&ua->le);

/* send the shutdown event */
bevent_app_emit(UA_EVENT_SHUTDOWN, NULL, NULL);
bevent_ua_emit(UA_EVENT_SHUTDOWN, ua, NULL);

/* terminate all calls now */
list_flush(&ua->calls);

0 comments on commit a6df4a1

Please sign in to comment.