assign variable soon enough.

This commit is contained in:
Yann Leboulanger 2008-10-22 18:13:43 +00:00
parent 6c41d9ecd4
commit 7ca670a303
1 changed files with 2 additions and 2 deletions

View File

@ -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()