mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 06:56:14 +01:00
gdbusprivate: Use G_SOURCE_REMOVE in a source callback
This is equivalent to the current behaviour, but a little clearer in its meaning. Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Helps: #1264
This commit is contained in:
parent
d7c813cf5b
commit
08a4387678
@ -980,7 +980,7 @@ on_socket_ready (GSocket *socket,
|
||||
{
|
||||
MessageToWriteData *data = g_steal_pointer (&user_data);
|
||||
write_message_continue_writing (g_steal_pointer (&data));
|
||||
return FALSE; /* remove source */
|
||||
return G_SOURCE_REMOVE;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user