mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
parent
cbaa419a31
commit
29f84ea3d4
@ -967,6 +967,15 @@ _autoping_timed_send(xmpp_conn_t *const conn, void *const userdata)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (connection_jid_for_feature(STANZA_NS_PING) == NULL) {
|
||||||
|
log_warning("Server doesn't advertise %s feature, disabling autoping.", STANZA_NS_PING);
|
||||||
|
prefs_set_autoping(0);
|
||||||
|
cons_show_error("Server ping not supported, autoping disabled.");
|
||||||
|
xmpp_conn_t *conn = connection_get_conn();
|
||||||
|
xmpp_timed_handler_delete(conn, _autoping_timed_send);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
if (autoping_wait) {
|
if (autoping_wait) {
|
||||||
log_debug("Autoping: Existing ping already in progress, aborting");
|
log_debug("Autoping: Existing ping already in progress, aborting");
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user