Commit da062864 authored by Avery Pennarun's avatar Avery Pennarun

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

parent 616d0680
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment