Commits

Martin Gergov committed f0232b6

Fixed issue with failed connection attempt.

Comments (0)

Files changed (1)

udt4twisted/udt.py

         status = self.socket.getsockopt(udt.UDT_STATE)
         if (status != udt.UDTSTATUS_CONNECTED) and \
                 (status != udt.UDTSTATUS_INIT):
-            self.failIfNotConnected(error.getConnectError((
-                        staus)))
+            # self.failIfNotConnected(error.getConnectError((
+            #             status)))
+            #FIXME works for now
+            self.stopConnecting()
             return
         elif status == udt.UDTSTATUS_CONNECTED:
             #Check for errors