mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-23 18:52:09 +01:00
Revert "Revert "gmain: Warn when g_source_remove() fails""
This reverts commit 8ab051c5c796e3d17863399bbf9164a71ba0fb06.
This commit is contained in:
parent
64423c96fd
commit
a97d9c6389
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user