common: always remove stream transport I/O watch during disconnect.
authorKrisztian Litkey <krisztian.litkey@intel.com>
Tue, 11 Dec 2012 14:17:55 +0000 (16:17 +0200)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Tue, 11 Dec 2012 14:20:43 +0000 (16:20 +0200)
src/common/stream-transport.c

index 764a20d..156a1b1 100644 (file)
@@ -558,7 +558,7 @@ static int strm_disconnect(mrp_transport_t *mt)
 {
     strm_t *t = (strm_t *)mt;
 
-    if (t->connected) {
+    if (t->connected || t->iow != NULL) {
         mrp_del_io_watch(t->iow);
         t->iow = NULL;