From c4b12a16ef76a2ad4f0b1f839b181b0c047f508f Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Thu, 18 Feb 2016 15:41:15 +0100 Subject: Read entire reply --- uca-net-camera.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'uca-net-camera.c') diff --git a/uca-net-camera.c b/uca-net-camera.c index ce0e26b..1194e09 100644 --- a/uca-net-camera.c +++ b/uca-net-camera.c @@ -324,7 +324,7 @@ request_get_property (GSocketConnection *connection, const gchar *name, GValue * return FALSE; /* reply */ - if (g_input_stream_read (input, &reply, sizeof (reply), NULL, error) < 0) + if (!g_input_stream_read_all (input, &reply, sizeof (reply), NULL, NULL, error)) return FALSE; if (reply.type != request.type) { -- cgit v1.2.3