From 91a8c344b185cc5e0a972124940acddde602de85 Mon Sep 17 00:00:00 2001 From: George Kiagiadakis Date: Sun, 24 Sep 2023 00:26:27 +0300 Subject: [PATCH] m-std-event-source: restore the rescan_scheduled flag before rescanning Fixes: #506 See also: !536 --- modules/module-standard-event-source.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/module-standard-event-source.c b/modules/module-standard-event-source.c index 49fcd91a..ac59b9f4 100644 --- a/modules/module-standard-event-source.c +++ b/modules/module-standard-event-source.c @@ -406,9 +406,9 @@ wp_standard_event_source_enable (WpPlugin * plugin, WpTransition * transition) wp_core_install_object_manager (core, self->oms[i]); } - /* install hook to restore the rescan_scheduled state after rescanning */ + /* install hook to restore the rescan_scheduled state just before rescanning */ self->rescan_done_hook = wp_simple_event_hook_new ( - "m-standard-event-source/rescan-done", NULL, NULL, + "m-standard-event-source/rescan-done", (const gchar *[]) { "*", NULL }, NULL, g_cclosure_new_object ((GCallback) on_rescan_done, G_OBJECT (self))); wp_interest_event_hook_add_interest ( WP_INTEREST_EVENT_HOOK (self->rescan_done_hook),