[gnome-network-displays/cc-tmp: 31/80] cc: fatal error when the receive pipeline is broken




commit 627f31364e02cf03f42b97d864afd468b5c1623b
Author: Anupam Kumar <kyteinsky gmail com>
Date:   Sat Sep 3 15:44:21 2022 +0530

    cc: fatal error when the receive pipeline is broken

 src/cc/cc-comm.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/cc/cc-comm.c b/src/cc/cc-comm.c
index f783cfb..e85e84c 100644
--- a/src/cc/cc-comm.c
+++ b/src/cc/cc-comm.c
@@ -123,11 +123,11 @@ cc_comm_message_read_cb (GObject      *source_object,
       if (error)
         {
           g_error ("CcComm: Error reading message from stream: %s", error->message);
-          cc_comm_listen (comm);
+          comm->closure->fatal_error_cb (comm->closure, &error);
           return;
         }
       g_error ("CcComm: Error reading message from stream.");
-      cc_comm_listen (comm);
+      comm->closure->fatal_error_cb (comm->closure, NULL);
       return;
     }
 
@@ -175,11 +175,11 @@ cc_comm_header_read_cb (GObject      *source_object,
       if (error)
         {
           g_error ("CcComm: Error reading header from stream: %s", error->message);
-          cc_comm_listen (comm);
+          comm->closure->fatal_error_cb (comm->closure, &error);
           return;
         }
       g_error ("CcComm: Error reading header from stream.");
-      cc_comm_listen (comm);
+      comm->closure->fatal_error_cb (comm->closure, NULL);
       return;
     }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]