1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

refactored jabber_set_autoping()

This commit is contained in:
Dmitry Podgorny 2013-01-12 23:48:24 +02:00
parent 9660f402ad
commit d04c7d070a

View File

@ -442,9 +442,7 @@ jabber_update_presence(jabber_presence_t status, const char * const msg,
void void
jabber_set_autoping(int seconds) jabber_set_autoping(int seconds)
{ {
if (jabber_conn.conn_status != JABBER_CONNECTED) { if (jabber_conn.conn_status == JABBER_CONNECTED) {
return;
} else {
xmpp_timed_handler_delete(jabber_conn.conn, _ping_timed_handler); xmpp_timed_handler_delete(jabber_conn.conn, _ping_timed_handler);
if (seconds != 0) { if (seconds != 0) {