commit 986f8816b432a8a741ab780a3ed355e85240debd
parent f9b80e31932602e820767b59e4253a67c159a85f
Author: Jacki <jacki@thejackimonster.de>
Date: Sun, 6 Oct 2024 19:36:00 +0200
Lock chat library function call for synchronization
Signed-off-by: Jacki <jacki@thejackimonster.de>
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/ui/new_lobby.c b/src/ui/new_lobby.c
@@ -147,12 +147,14 @@ handle_generate_button_click(UNUSED GtkButton *button,
gtk_widget_set_visible(GTK_WIDGET(app->ui.new_lobby.generate_button), FALSE);
gtk_widget_set_visible(GTK_WIDGET(app->ui.new_lobby.copy_button), TRUE);
+ application_chat_lock(app);
GNUNET_CHAT_lobby_open(
app->chat.messenger.handle,
delay,
handle_lobby_opened_and_uri_generated,
app
);
+ application_chat_unlock(app);
}
static void