From ffbb66e2632498b63162949835f33daaddf8a623 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 22 Feb 2023 02:58:05 +0000 Subject: [PATCH] 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 Helps: #1264 --- gio/gdbusprivate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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