From 06ce1a2fa846cac4f7c21ef629c845647b3710a1 Mon Sep 17 00:00:00 2001 From: Jacob Peddicord Date: Mon, 5 Apr 2010 08:45:37 -0400 Subject: [PATCH] add a delay between reconnection attempts --- highlightxmpp.py | 1 + 1 file changed, 1 insertion(+) diff --git a/highlightxmpp.py b/highlightxmpp.py index 657f97d..d3cc09f 100644 --- a/highlightxmpp.py +++ b/highlightxmpp.py @@ -88,6 +88,7 @@ def send_xmpp(data, signal, msg, trial=1): w.prnt('', "Could send to XMPP server.") else: w.prnt('', "Lost connection to XMPP server. Trying to send again... (trial %d)" % trial + 1) + sleep(0.5) send_xmpp(data, signal, msg, trial + 1) return w.WEECHAT_RC_OK