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 and karuna2git committed Jan 6, 2025
1 parent d694967 commit 70e3e28
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 70e3e28

Please sign in to comment.