From: Krisztian Litkey Date: Tue, 11 Dec 2012 14:17:55 +0000 (+0200) Subject: common: always remove stream transport I/O watch during disconnect. X-Git-Tag: accepted/2.0alpha/20121211.170526~27 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1808026922a1082b27213f866aa7a7244245e711;p=profile%2Fivi%2Fmurphy.git common: always remove stream transport I/O watch during disconnect. --- diff --git a/src/common/stream-transport.c b/src/common/stream-transport.c index 764a20d..156a1b1 100644 --- a/src/common/stream-transport.c +++ b/src/common/stream-transport.c @@ -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;