Skip to content

Commit

Permalink
RBUS Events are not received if handle is closed and reopened. (#221)
Browse files Browse the repository at this point in the history
Event dispatch thread state is maintained in a static global variable. When rbus handle is shutdown, the state is never set to false, so any future handles opened will not receive events.
  • Loading branch information
cbucht200 authored Oct 8, 2024
1 parent 4c1d2b4 commit 2b82a4d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/rbuscore.c
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,7 @@ rbusCoreError_t rbus_closeBrokerConnection()
return RBUSCORE_ERROR_GENERAL;
}
g_connection = NULL;
g_run_event_client_dispatch = false;
unlock();

pthread_mutex_destroy(&g_mutex);
Expand Down

0 comments on commit 2b82a4d

Please sign in to comment.