Entropy/Socket Interface:

- handle socket exceptions in handle_end_answer()

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2122 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
lxnay
2008-06-11 10:43:37 +00:00
parent a1b3ad85ed
commit d26da26d14
+4 -1
View File
@@ -12813,7 +12813,10 @@ class SocketHostInterface:
if session != None:
self.HostInterface.update_session_time(session)
self.HostInterface.unset_session_running(session)
self.handle_end_answer(cmd, whoops, valid_cmd)
try:
self.handle_end_answer(cmd, whoops, valid_cmd)
except (self.socket.error, self.socket.timeout):
return "close"
def transmit(self, data):
self.HostInterface.transmit(self.channel, data)