fix error with bosh

This commit is contained in:
Yann Leboulanger 2009-07-13 22:23:14 +02:00
parent 4a469d2ae6
commit b8e80c2245
1 changed files with 2 additions and 1 deletions

View File

@ -504,7 +504,8 @@ class NonBlockingBind(PlugIn):
jid = JID(resp.getTag('bind').getTagData('jid'))
self._owner.User = jid.getNode()
self._owner.Resource = jid.getResource()
if self.session == -1: #Server don't want us to initialize a session
if hasattr(self, 'session') and self.session == -1:
# Server don't want us to initialize a session
log.info('No session required.')
self.on_bound('ok')
else: