minor fix: catching socket errors

This commit is contained in:
fros4943 2007-10-22 12:39:41 +00:00
parent 91b79de654
commit 1b40da2636
1 changed files with 2 additions and 0 deletions

View File

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