From 373505f48351a310f7d7ddf0da92fd604682daf1 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Mon, 21 Jul 2014 20:27:53 +0200 Subject: Clean a new bunch of stuf --- slixmpp/features/feature_bind/bind.py | 1 - slixmpp/features/feature_mechanisms/mechanisms.py | 4 ++-- slixmpp/features/feature_session/session.py | 1 - slixmpp/features/feature_starttls/starttls.py | 2 +- 4 files changed, 3 insertions(+), 5 deletions(-) (limited to 'slixmpp/features') diff --git a/slixmpp/features/feature_bind/bind.py b/slixmpp/features/feature_bind/bind.py index f636abf9..e26c3ce6 100644 --- a/slixmpp/features/feature_bind/bind.py +++ b/slixmpp/features/feature_bind/bind.py @@ -64,5 +64,4 @@ class FeatureBind(BasePlugin): if 'session' not in self.features['features']: log.debug("Established Session") self.xmpp.sessionstarted = True - self.xmpp.session_started_event.set() self.xmpp.event('session_start') diff --git a/slixmpp/features/feature_mechanisms/mechanisms.py b/slixmpp/features/feature_mechanisms/mechanisms.py index 3cbb83f2..00dd481c 100644 --- a/slixmpp/features/feature_mechanisms/mechanisms.py +++ b/slixmpp/features/feature_mechanisms/mechanisms.py @@ -196,7 +196,7 @@ class FeatureMechanisms(BasePlugin): self.attempted_mechs.add(self.mech.name) self.xmpp.disconnect() else: - resp.send(now=True) + resp.send() return True @@ -217,7 +217,7 @@ class FeatureMechanisms(BasePlugin): else: if resp.get_value() == '': resp.del_value() - resp.send(now=True) + resp.send() def _handle_success(self, stanza): """SASL authentication succeeded. Restart the stream.""" diff --git a/slixmpp/features/feature_session/session.py b/slixmpp/features/feature_session/session.py index 08f7480f..e57405db 100644 --- a/slixmpp/features/feature_session/session.py +++ b/slixmpp/features/feature_session/session.py @@ -51,5 +51,4 @@ class FeatureSession(BasePlugin): log.debug("Established Session") self.xmpp.sessionstarted = True - self.xmpp.session_started_event.set() self.xmpp.event('session_start') diff --git a/slixmpp/features/feature_starttls/starttls.py b/slixmpp/features/feature_starttls/starttls.py index a05f755b..5aad8ed4 100644 --- a/slixmpp/features/feature_starttls/starttls.py +++ b/slixmpp/features/feature_starttls/starttls.py @@ -55,7 +55,7 @@ class FeatureSTARTTLS(BasePlugin): elif self.xmpp.disable_starttls: return False else: - self.xmpp.send(features['starttls'], now=True) + self.xmpp.send(features['starttls']) return True def _handle_starttls_proceed(self, proceed): -- cgit v1.2.3