[gnome-network-displays/cc-tmp: 38/80] cc: return if cancelled
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-network-displays/cc-tmp: 38/80] cc: return if cancelled
- Date: Fri, 9 Sep 2022 12:03:50 +0000 (UTC)
commit 63bf29a6c8bb0acb997a7ef3d2526526f3787cdf
Author: Anupam Kumar <kyteinsky gmail com>
Date: Sat Sep 3 17:03:37 2022 +0530
cc: return if cancelled
src/cc/cc-comm.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/src/cc/cc-comm.c b/src/cc/cc-comm.c
index e1a493f..a73f366 100644
--- a/src/cc/cc-comm.c
+++ b/src/cc/cc-comm.c
@@ -104,6 +104,9 @@ cc_comm_message_read_cb (GObject *source_object,
{
CcComm * comm = (CcComm *) user_data;
+ if (g_cancellable_is_cancelled (comm->cancellable))
+ return;
+
g_autoptr(GError) error = NULL;
gboolean success;
gsize io_bytes;
@@ -154,6 +157,9 @@ cc_comm_header_read_cb (GObject *source_object,
{
CcComm *comm = (CcComm *) user_data;
+ if (g_cancellable_is_cancelled (comm->cancellable))
+ return;
+
g_autoptr (GError) error = NULL;
g_autoptr (GInputStream) istream = NULL;
gboolean success;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]