Revert "Revert "gmain: Warn when g_source_remove() fails""

This reverts commit 8ab051c5c796e3d17863399bbf9164a71ba0fb06.
This commit is contained in:
Ray Strode 2023-03-20 12:00:02 -04:00
parent 64423c96fd
commit a97d9c6389

View File

@ -2405,6 +2405,8 @@ g_source_remove (guint tag)
source = g_main_context_find_source_by_id (NULL, tag);
if (source)
g_source_destroy (source);
else
g_critical ("Source ID %u was not found when attempting to remove it", tag);
return source != NULL;
}