Skip to content
This repository has been archived by the owner on Jan 30, 2018. It is now read-only.

Commit

Permalink
added should_reconnect as argument
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzy committed Jul 20, 2010
1 parent 3162ac8 commit 2e8463a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 543 deletions.
5 changes: 3 additions & 2 deletions sleekxmpp/__init__.py
Expand Up @@ -34,8 +34,8 @@
class ClientXMPP(basexmpp, XMLStream):
"""SleekXMPP's client class. Use only for good, not evil."""

def __init__(self, jid, password, ssl=False, plugin_config = {}, plugin_whitelist=[], escape_quotes=True):
XMLStream.__init__(self)
def __init__(self, jid, password, ssl=False, plugin_config = {}, plugin_whitelist=[], escape_quotes=True, should_reconnect=True):
XMLStream.__init__(self, should_reconnect = should_reconnect)
self.default_ns = 'jabber:client'
basexmpp.__init__(self)
self.plugin_config = plugin_config
Expand Down Expand Up @@ -84,6 +84,7 @@ def connect(self, address=None):
"""Connect to the Jabber Server. Attempts SRV lookup, and if it fails, uses
the JID server. You can optionally specify a host/port if you're not using
DNS and want to connect to a server address that is different from the XMPP domain."""
host = port = None
if address:
host, port = address

Expand Down

0 comments on commit 2e8463a

Please sign in to comment.