[jsonrpc-glib] client: also check for panic/failure



commit 37756d580fdbc4f37290614d25ab40c397d68e0f
Author: Christian Hergert <chergert redhat com>
Date:   Wed Dec 27 03:35:43 2017 -0800

    client: also check for panic/failure

 src/jsonrpc-client.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/jsonrpc-client.c b/src/jsonrpc-client.c
index c73eff1..db388e2 100644
--- a/src/jsonrpc-client.c
+++ b/src/jsonrpc-client.c
@@ -781,7 +781,9 @@ jsonrpc_client_call_read_cb (GObject      *object,
   g_warning ("Unhandled RPC from peer!");
 
 begin_next_read:
-  if (priv->input_stream != NULL && priv->in_shutdown == FALSE)
+  if (priv->input_stream != NULL &&
+      priv->in_shutdown == FALSE &&
+      priv->failed == FALSE)
     jsonrpc_input_stream_read_message_async (priv->input_stream,
                                              priv->read_loop_cancellable,
                                              jsonrpc_client_call_read_cb,


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