diff options
author | Lance Stout <lancestout@gmail.com> | 2011-10-08 17:31:30 -0400 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2011-10-08 17:31:30 -0400 |
commit | 335dc2927bf874aa3ee3d4154257040b3b59db1a (patch) | |
tree | 067c15ac5713fed951dd0d9d09db79fa8f7a6327 /sleekxmpp/xmlstream/handler/waiter.py | |
parent | ccbef6b6968b4d50192b290404869e18d33c8414 (diff) | |
download | slixmpp-335dc2927bf874aa3ee3d4154257040b3b59db1a.tar.gz slixmpp-335dc2927bf874aa3ee3d4154257040b3b59db1a.tar.bz2 slixmpp-335dc2927bf874aa3ee3d4154257040b3b59db1a.tar.xz slixmpp-335dc2927bf874aa3ee3d4154257040b3b59db1a.zip |
Break reference cycle to fix potential memory leaks for callback handlers.
Diffstat (limited to 'sleekxmpp/xmlstream/handler/waiter.py')
-rw-r--r-- | sleekxmpp/xmlstream/handler/waiter.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sleekxmpp/xmlstream/handler/waiter.py b/sleekxmpp/xmlstream/handler/waiter.py index 341c01fe..25dc161c 100644 --- a/sleekxmpp/xmlstream/handler/waiter.py +++ b/sleekxmpp/xmlstream/handler/waiter.py @@ -85,14 +85,14 @@ class Waiter(BaseHandler): value sleekxmpp.xmlstream.RESPONSE_TIMEOUT. """ if timeout is None: - timeout = self.stream.response_timeout + timeout = self.stream().response_timeout try: stanza = self._payload.get(True, timeout) except queue.Empty: stanza = False log.warning("Timed out waiting for %s" % self.name) - self.stream.removeHandler(self.name) + self.stream().remove_handler(self.name) return stanza def check_delete(self): |