Function session_set_watch returns proper value
authorAdam Dickmeiss <adam@indexdata.dk>
Fri, 5 Aug 2011 09:25:30 +0000 (11:25 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Fri, 5 Aug 2011 09:25:30 +0000 (11:25 +0200)
It will be interesting to see what side effects that will have.

src/session.c

index 545f0fc..6002a80 100644 (file)
@@ -488,7 +488,7 @@ int session_set_watch(struct session *s, int what,
         ret = 0;
     }
     session_leave(s);
-    return 0;
+    return ret;
 }
 
 void session_alert_watch(struct session *s, int what)