Diff between 76d11f1b6f4c8ac37b2ceec79f05c3eb538251d0 and 902ce0684034729b724dbd3d5fc91cb81d5ce54a

Changed Files

File Additions Deletions Status
src/shared/mgmt.c +2 -6 modified

Full Patch

diff --git a/src/shared/mgmt.c b/src/shared/mgmt.c
index 78dc881..c41454b 100644
--- a/src/shared/mgmt.c
+++ b/src/shared/mgmt.c
@@ -422,15 +422,11 @@ void mgmt_unref(struct mgmt *mgmt)
 	g_queue_free(mgmt->reply_queue);
 	g_queue_free(mgmt->request_queue);
 
-	if (mgmt->write_watch > 0) {
+	if (mgmt->write_watch > 0)
 		g_source_remove(mgmt->write_watch);
-		mgmt->write_watch = 0;
-	}
 
-	if (mgmt->read_watch > 0) {
+	if (mgmt->read_watch > 0)
 		g_source_remove(mgmt->read_watch);
-		mgmt->read_watch = 0;
-	}
 
 	g_io_channel_unref(mgmt->io);
 	mgmt->io = NULL;