Commit e714e1e9 authored by Ting-Wei Lan's avatar Ting-Wei Lan

kqueue: Use the worker context to schedule rescanning of missing files

This makes it consistent with the file monitor itself, which already
attaches kqueue event sources to the worker context.
parent 454a9f8d
......@@ -66,8 +66,12 @@ _km_add_missing (kqueue_sub *sub)
if (!scan_missing_running)
GSource *source;
scan_missing_running = TRUE;
g_timeout_add_seconds (SCAN_MISSING_TIME, km_scan_missing, NULL);
source = g_timeout_source_new_seconds (SCAN_MISSING_TIME);
g_source_set_callback (source, _km_scan_missing_cb, NULL, NULL);
g_source_attach (source, GLIB_PRIVATE_CALL (g_get_worker_context) ());
g_source_unref (source);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment