summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <pwithnall@endlessos.org>2023-02-22 02:58:05 +0000
committerPhilip Withnall <pwithnall@endlessos.org>2023-04-14 15:37:21 +0100
commit08a4387678346caaa42b69e5e6e5995d48cd61c4 (patch)
treeb3c9851bd23b5e4097510b098ba85522ea3a7148
parentd7c813cf5b6148c18184e4f1af23d234e73aafb8 (diff)
downloadglib-08a4387678346caaa42b69e5e6e5995d48cd61c4.tar.gz
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
-rw-r--r--gio/gdbusprivate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gio/gdbusprivate.c b/gio/gdbusprivate.c
index 5aa141a60..2c9238c63 100644
--- a/gio/gdbusprivate.c
+++ b/gio/gdbusprivate.c
@@ -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