minor fix: catching socket errors

This commit is contained in:
fros4943 2007-10-22 12:39:41 +00:00
parent 91b79de654
commit 1b40da2636

View file

@ -283,6 +283,8 @@ class Shepherd:
if response.documentElement.tagName == 'error': if response.documentElement.tagName == 'error':
raise chakana.error.CoojaError(response) raise chakana.error.CoojaError(response)
return response return response
except socket.error:
debug(MajorEvent, 'Socket error catched')
finally: finally:
self._connectionLock.release() self._connectionLock.release()