ssnet: when a connection error occurs, stop trying to connect.

This commit is contained in:
Avery Pennarun 2010-05-02 03:52:46 -04:00
parent 616d0680d1
commit da06286427

View File

@ -81,6 +81,7 @@ class SockWrapper:
pass # not connected yet
elif e.args[0] in [errno.ECONNREFUSED, errno.ETIMEDOUT]:
# a "normal" kind of error
self.connect_to = None
self.seterr(e)
else:
raise # error we've never heard of?! barf completely.