From bb103648c90c922c1af1d2b039c1d98fa32fc703 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 7 Jan 2013 19:54:41 -0800 Subject: [PATCH] shared: Fix issue with testing mgmt->pending_list --- src/shared/mgmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/mgmt.c b/src/shared/mgmt.c index e9e510528..9bdab00f7 100644 --- a/src/shared/mgmt.c +++ b/src/shared/mgmt.c @@ -146,7 +146,7 @@ static gboolean can_write_data(GIOChannel *channel, GIOCondition cond, request = g_queue_pop_head(mgmt->reply_queue); if (!request) { /* only reply commands can jump the queue */ - if (!mgmt->pending_list) + if (mgmt->pending_list) return FALSE; request = g_queue_pop_head(mgmt->request_queue); -- 2.47.3