slixmpp/slixmpp
Georg Lukas d85efec7a2 reconnect: fix callback when not currently connected
The 'disconnected' event is normally fired from connection_lost(), which
is called by the connection code when the connection is lost after being
established. However, if the connection wasn't successfully established,
a manual /reconnect no-ops because it waits for the 'disconnected'
callback which never fires. This patch does two things:

1. Immediately fire a 'disconnected' event in disconnect() if there is
   no transport.

2. Register the 'disconnected' event handler in reconnect() *before* it
   can be fired.
2020-03-23 18:59:29 +01:00
..
features Fix authenticating on a non-TLS socket. 2019-01-21 01:02:06 +01:00
plugins xep_0048: Ensure Conference jid is of type str when given a JID 2019-11-11 14:00:19 +01:00
roster Don’t trigger presence events on MUC presence 2016-08-22 01:29:07 +02:00
stanza basexmpp: Make origin-id opt-out 2019-08-23 17:09:21 +02:00
test Update test framework to work with new filters 2019-12-27 15:27:28 +01:00
thirdparty Merge branch 'develop' of https://github.com/fritzy/SleekXMPP into sleek-merge 2015-10-02 19:00:19 +02:00
util Make the cache encode and decode not crash if something goes wrong 2019-02-02 17:42:24 +01:00
xmlstream reconnect: fix callback when not currently connected 2020-03-23 18:59:29 +01:00
__init__.py Fix compatibility with python 3.5 and 3.6 2018-08-08 23:35:33 +02:00
api.py Rename to slixmpp 2014-07-17 14:19:04 +02:00
basexmpp.py basexmpp: Make origin-id opt-out 2019-08-23 17:09:21 +02:00
clientxmpp.py Switch from @asyncio.coroutine to async def everywhere. 2018-07-01 18:46:33 +02:00
componentxmpp.py Merge branch 'develop' of https://github.com/fritzy/SleekXMPP into sleek-merge 2015-10-02 19:00:19 +02:00
exceptions.py Fix uses of super() in the codebase 2016-09-30 21:25:36 +02:00
jid.py fix a typo in the invalidjid exception name case 2019-08-25 01:42:00 +02:00
stringprep.py stringprep: Make pure-Python punycode() return bytes. 2017-12-27 15:48:42 +01:00
stringprep.pyx Add a function to convert a domain name to punycode. 2015-08-20 20:04:58 +01:00
version.py Release 1.4.2 2019-01-31 14:50:26 +01:00