mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-12 18:55:12 +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
3ed468f572
commit
ffbb66e263
@ -980,7 +980,7 @@ on_socket_ready (GSocket *socket,
|
|||||||
{
|
{
|
||||||
MessageToWriteData *data = g_steal_pointer (&user_data);
|
MessageToWriteData *data = g_steal_pointer (&user_data);
|
||||||
write_message_continue_writing (g_steal_pointer (&data));
|
write_message_continue_writing (g_steal_pointer (&data));
|
||||||
return FALSE; /* remove source */
|
return G_SOURCE_REMOVE;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user