summaryrefslogtreecommitdiff
path: root/response.c
diff options
context:
space:
mode:
Diffstat (limited to 'response.c')
-rw-r--r--response.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/response.c b/response.c
index 6eb748e..f35284d 100644
--- a/response.c
+++ b/response.c
@@ -77,12 +77,7 @@ gboolean cbClientInput(gpointer data, gpointer additional)
//write output to client
static gssize writeOutput(GPollableOutputStream* stream, gchar* data, gssize size)
{
- gssize what=0;
- what=g_pollable_output_stream_write_nonblocking(stream, data, size, NULL, NULL);
- if(what < 0 || what == G_IO_ERROR_WOULD_BLOCK) {
- return -1;
- }
- return what;
+ return g_pollable_output_stream_write_nonblocking(stream, data, size, NULL, NULL);
}
//initialize the signals