Compila rnetserver e rnetclient.
[cascardo/rnetproxy.git] / hcconn.c
index af658ca..c15256f 100644 (file)
--- a/hcconn.c
+++ b/hcconn.c
@@ -1,5 +1,5 @@
 /*
- *  Copyright (C) 2009  Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
+ *  Copyright (C) 2009  Thadeu Lima de Souza Cascardo <cascardo@minaslivre.org>
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -119,6 +119,11 @@ hc_conn_watch (GIOChannel *channel, GIOCondition cond, gpointer data)
         {
           event = HC_EVENT_CLOSE;
         }
+      else if (r == -1)
+        {
+          /* FIXME: create HC_EVENT_ERROR */
+          event = HC_EVENT_CLOSE;
+        }
     }
   else if (cond & G_IO_HUP)
     {