From da0628642701550e235338741eb5a0f85ef3ec4b Mon Sep 17 00:00:00 2001 From: Avery Pennarun Date: Sun, 2 May 2010 03:52:46 -0400 Subject: [PATCH] ssnet: when a connection error occurs, stop trying to connect. --- ssnet.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ssnet.py b/ssnet.py index a8dea5a..e5c78a2 100644 --- a/ssnet.py +++ b/ssnet.py @@ -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.