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:
Philip Withnall 2023-02-22 02:58:05 +00:00
parent d7c813cf5b
commit 08a4387678

View File

@ -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