[glib-networking/mcatanzaro/#20: 14/18] Improve clarity of dispatch function
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking/mcatanzaro/#20: 14/18] Improve clarity of dispatch function
- Date: Tue, 1 Sep 2020 18:24:32 +0000 (UTC)
commit c040c7d324d8de38fb33f464e481e70ffc7ad5a2
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sun Jan 26 14:34:54 2020 -0600
Improve clarity of dispatch function
It's more obvious why we need to sync if we write out the return value
here.
tls/base/gtlsconnection-base.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tls/base/gtlsconnection-base.c b/tls/base/gtlsconnection-base.c
index d77cdf51..1f4e1c76 100644
--- a/tls/base/gtlsconnection-base.c
+++ b/tls/base/gtlsconnection-base.c
@@ -1019,7 +1019,7 @@ tls_source_dispatch (GSource *source,
else
ret = (*pollable_func) (tls_source->base, user_data);
- if (ret)
+ if (ret != G_SOURCE_REMOVE)
tls_source_sync (tls_source);
return ret;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]