summaryrefslogtreecommitdiff
path: root/instr-client.c
diff options
context:
space:
mode:
Diffstat (limited to 'instr-client.c')
-rw-r--r--instr-client.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/instr-client.c b/instr-client.c
index 7298774..a80a0e3 100644
--- a/instr-client.c
+++ b/instr-client.c
@@ -85,9 +85,8 @@ static gboolean cbServerInput(gpointer data, gpointer additional)
GPollableInputStream* inStream = (GPollableInputStream*)data;
size=g_pollable_input_stream_read_nonblocking(inStream, buffer, BUFSIZE, NULL, NULL);
- if(size <=0 || size == G_IO_ERROR_WOULD_BLOCK) {
- terminate("Connection to server lost", -1);
- }
+ if(size <=0) terminate("Connection to server lost", -1);
+
g_print("\n%s", buffer);
g_print("> ");
return TRUE;