From d26da26d148f73ca531117ee40ecfacdaae3b82c Mon Sep 17 00:00:00 2001 From: lxnay Date: Wed, 11 Jun 2008 10:43:37 +0000 Subject: [PATCH] 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 --- libraries/entropy.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libraries/entropy.py b/libraries/entropy.py index f87210f52..3517a62e1 100644 --- a/libraries/entropy.py +++ b/libraries/entropy.py @@ -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)