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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user