[glib-networking/mcatanzaro/#20: 7/10] Improve clarity of dispatch function
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking/mcatanzaro/#20: 7/10] Improve clarity of dispatch function
- Date: Tue, 25 Aug 2020 20:54:23 +0000 (UTC)
commit d557e4e291dd6bcfc95257aa69a4a639eaddb2fe
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 d77cdf5..eee70cb 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_CONTINUE)
tls_source_sync (tls_source);
return ret;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]