diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/common/xmpp/transports_nb.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/xmpp/transports_nb.py b/src/common/xmpp/transports_nb.py index 4d4a80a06..4f60b4518 100644 --- a/src/common/xmpp/transports_nb.py +++ b/src/common/xmpp/transports_nb.py @@ -565,6 +565,8 @@ class NonBlockingTcp(PlugIn, IdleObject): return self.fd = self._sock.fileno() self.idlequeue.plug_idle(self, True, False) + self._send = self._sock.send + self._recv = self._sock.recv self.set_timeout(CONNECT_TIMEOUT_SECONDS) self._do_connect() @@ -591,8 +593,6 @@ class NonBlockingTcp(PlugIn, IdleObject): self._owner.Connection=self self.state = 1 - self._send = self._sock.send - self._recv = self._sock.recv self._plug_idle() if self.on_connect: self.on_connect() |