about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorDmitry Podgorny <pasis.ua@gmail.com>2013-01-12 23:48:24 +0200
committerDmitry Podgorny <pasis.ua@gmail.com>2013-01-12 23:48:24 +0200
commitd04c7d070a6a36291b940d40b2bb708e0f73b410 (patch)
tree1484eb439e680a5569ea99679192bf32aff9e508 /src
parent9660f402ad39a525e66fc5d7e203fadd30df28ee (diff)
downloadprofani-tty-d04c7d070a6a36291b940d40b2bb708e0f73b410.tar.gz
refactored jabber_set_autoping()
Diffstat (limited to 'src')
-rw-r--r--src/jabber.c4
1 files changed, 1 insertions, 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) {