From d2b3f0023611c94a6bb6d95a1fd45297f548ff02 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 31 Dec 2008 19:27:53 -0800 Subject: When opening the initial connection, break out of the ip loop as soon as the first one succeeds. --- mirrorselect | 1 + 1 file changed, 1 insertion(+) diff --git a/mirrorselect b/mirrorselect index 9634d11..ca2159e 100755 --- a/mirrorselect +++ b/mirrorselect @@ -505,6 +505,7 @@ class Deep(object): try: signal.alarm(self._connect_timeout) f = urllib.urlopen(ip_url) + break finally: signal.alarm(0) except EnvironmentError, e: -- cgit v1.2.3-18-g5258