core/calendar-monitor: Join thread before NULLifying it

This allows the threading macros to compare against the correct
value.
This commit is contained in:
Georges Basile Stavracas Neto
2023-08-23 09:33:01 -03:00
parent 6f45dcc26f
commit 42de771c24
+6 -1
View File
@@ -1234,7 +1234,12 @@ gcal_calendar_monitor_finalize (GObject *object)
g_cancellable_cancel (self->cancellable);
notify_view_thread (self, QUIT);
g_clear_pointer (&self->thread, g_thread_join);
if (self->thread)
{
g_thread_join (self->thread);
self->thread = NULL;
}
remove_all_events (self);