summaryrefslogtreecommitdiff
path: root/response.c
diff options
context:
space:
mode:
Diffstat (limited to 'response.c')
-rw-r--r--response.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/response.c b/response.c
index 166cd6a..2e89908 100644
--- a/response.c
+++ b/response.c
@@ -61,15 +61,16 @@ gboolean cbClientInput(gpointer data, gpointer additional)
GPollableOutputStream* outStream = (GPollableOutputStream*)additional;
GError* error = NULL;
- if(!g_pollable_input_stream_is_readable(inStream)) { return FALSE; }
+ if(!g_pollable_input_stream_is_readable(inStream)) {
+ return FALSE;
+ }
size=g_pollable_input_stream_read_nonblocking(inStream, buffer, 1024, NULL, &error);
-
- if(error && error->message)
- {
+
+ if(error && error->message) {
g_print_debug("Error: %s\n",error->message);
return FALSE;
}
-
+
if(size <= 0) {
g_print_debug("Got: %d\n", (int) size);
return FALSE;