From e58c7fcadaab8af68ecfc911c16d7358649e7952 Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Wed, 28 Sep 2011 00:49:11 +0300 Subject: [PATCH 15/18] IdleConnection: Remove redundant check idle_connection_add_queue_timeout checks if the timeout is active or not, so no need to check it in the caller. --- src/idle-connection.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/idle-connection.c b/src/idle-connection.c index 4e44bb5..8fc7713 100644 --- a/src/idle-connection.c +++ b/src/idle-connection.c @@ -782,7 +782,7 @@ static void sconn_status_changed_cb(IdleServerConnection *sconn, IdleServerConne if (priv->keepalive_interval != 0 && priv->keepalive_timeout == 0) priv->keepalive_timeout = g_timeout_add_seconds(priv->keepalive_interval, keepalive_timeout_cb, conn); - if ((priv->msg_queue_timeout == 0) && (g_queue_get_length(priv->msg_queue) > 0)) { + if (g_queue_get_length(priv->msg_queue) > 0) { IDLE_DEBUG("we had messages in queue, start unloading them now"); idle_connection_add_queue_timeout (conn); } -- 1.7.6.2