Skip to content
Browse files

Remove Stanza once callback called to avoid memory ballonning

Deleting session._expected[ID] when the callback will be processed
avoid this dict to grow over the time.
  • Loading branch information
CyrilPeponnet committed Sep 15, 2014
1 parent 96eff7d commit 35c77e4508de851bc5db66c54fe055b4d56d3f1b
Showing with 1 addition and 0 deletions.
  1. +1 −0 xmpp/
@@ -289,6 +289,7 @@ def dispatch(self,stanza,session=None,direct=0):
if type(session._expected[ID])==type(()):
del session._expected[ID]
session.DEBUG("Expected stanza arrived. Callback %s(%s) found!"%(cb,args),'ok')
try: cb(session,stanza,**args)
except Exception, typ:

0 comments on commit 35c77e4

Please sign in to comment.
You can’t perform that action at this time.