From 395435c68dc656641e7bdb53da88773482dd55b5 Mon Sep 17 00:00:00 2001 From: Georg Lukas Date: Thu, 2 Nov 2017 12:54:48 +0100 Subject: self-ping: add 'timeout' option for ping response --- poezio/tabs/muctab.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'poezio/tabs') diff --git a/poezio/tabs/muctab.py b/poezio/tabs/muctab.py index 529cdafd..13feb552 100644 --- a/poezio/tabs/muctab.py +++ b/poezio/tabs/muctab.py @@ -1091,12 +1091,13 @@ class MucTab(ChatTab): self.self_ping_event = None def send_self_ping(self): + timeout = config.get_by_tabname("self_ping_timeout", self.general_jid, default=60) to = self.name + "/" + self.own_nick self.core.xmpp.plugin['xep_0199'].send_ping( jid=to, callback=self.on_self_ping_result, timeout_callback=self.on_self_ping_failed, - timeout=60) + timeout=timeout) def on_self_ping_result(self, iq): if iq["type"] == "error" and iq["error"]["condition"] != "feature-not-implemented": -- cgit v1.2.3