mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-30 21:36:21 +00:00
refactored jabber_set_autoping()
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user