summaryrefslogtreecommitdiff
path: root/instr-client.c
diff options
context:
space:
mode:
authorMichael J. Chudobiak <mjc@avtechpulse.com>2012-07-19 15:42:23 -0400
committerMichael J. Chudobiak <mjc@avtechpulse.com>2012-07-19 15:42:23 -0400
commit0fbcb784478e0be2fd7f31f79db45571fdbaef78 (patch)
tree7ea132fe5d2f1179622391686ad828789bfc34e7 /instr-client.c
parent31bca4f44d92b6ca0e67f355f46791270a9c471d (diff)
parent9a5b7483dc16651bbef5aeae9791c9ccb120380a (diff)
Merge branch 'master' of ulmo:Instrument
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;