From d04c7d070a6a36291b940d40b2bb708e0f73b410 Mon Sep 17 00:00:00 2001 From: Dmitry Podgorny Date: Sat, 12 Jan 2013 23:48:24 +0200 Subject: [PATCH] refactored jabber_set_autoping() --- src/jabber.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/jabber.c b/src/jabber.c index 8579cec3..52b9ac0d 100644 --- a/src/jabber.c +++ b/src/jabber.c @@ -442,9 +442,7 @@ jabber_update_presence(jabber_presence_t status, const char * const msg, void jabber_set_autoping(int seconds) { - if (jabber_conn.conn_status != JABBER_CONNECTED) { - return; - } else { + if (jabber_conn.conn_status == JABBER_CONNECTED) { xmpp_timed_handler_delete(jabber_conn.conn, _ping_timed_handler); if (seconds != 0) {