summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--slixmpp/stanza/iq.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/slixmpp/stanza/iq.py b/slixmpp/stanza/iq.py
index 385bbbd9..a3f16e2f 100644
--- a/slixmpp/stanza/iq.py
+++ b/slixmpp/stanza/iq.py
@@ -187,6 +187,10 @@ class Iq(RootStanza):
future = asyncio.Future()
+ # Prevents handlers from existing forever.
+ if timeout is None:
+ timeout = 120
+
def callback_success(result):
type_ = result['type']
if type_ == 'result':