aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gmail.com>2008-12-31 19:27:53 -0800
committerZac Medico <zmedico@gmail.com>2008-12-31 19:27:53 -0800
commitd2b3f0023611c94a6bb6d95a1fd45297f548ff02 (patch)
tree37b382b3a9c7b30d4e85db1d78c07d334aa99e4e
parentMake all classes explicitly inherit from object. (diff)
downloadmirrorselect-1.4.1.tar.gz
mirrorselect-1.4.1.tar.bz2
mirrorselect-1.4.1.zip
When opening the initial connection, break out of the ip loop as soonv1.4.1
as the first one succeeds.
-rwxr-xr-xmirrorselect1
1 files changed, 1 insertions, 0 deletions
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: