Fix the http over xmpp example

This commit is contained in:
mathieui 2017-02-14 01:04:38 +01:00
parent ffc240d5b6
commit cabf623131
No known key found for this signature in database
GPG key ID: C59F84CEEFD616E3

View file

@ -23,7 +23,7 @@ class HTTPOverXMPPClient(ClientXMPP):
ClientXMPP.__init__(self, jid, password) ClientXMPP.__init__(self, jid, password)
self.register_plugin('xep_0332') # HTTP over XMPP Transport self.register_plugin('xep_0332') # HTTP over XMPP Transport
self.add_event_handler( self.add_event_handler(
'session_start', self.session_start, threaded=True 'session_start', self.session_start
) )
self.add_event_handler('http_request', self.http_request_received) self.add_event_handler('http_request', self.http_request_received)
self.add_event_handler('http_response', self.http_response_received) self.add_event_handler('http_response', self.http_response_received)