diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/Server/Component.py | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/src/lib/Server/Component.py b/src/lib/Server/Component.py index 20423fa51..217f6414b 100644 --- a/src/lib/Server/Component.py +++ b/src/lib/Server/Component.py @@ -33,15 +33,18 @@ class CobaltXMLRPCRequestHandler(SimpleXMLRPCServer.SimpleXMLRPCRequestHandler): self.end_headers() else: # got a valid XML RPC response - self.send_response(200) - self.send_header("Content-type", "text/xml") - self.send_header("Content-length", str(len(response))) - self.end_headers() - self.wfile.write(response) - - # shut down the connection - self.wfile.flush() - #self.connection.shutdown() + try: + self.send_response(200) + self.send_header("Content-type", "text/xml") + self.send_header("Content-length", str(len(response))) + self.end_headers() + self.wfile.write(response) + + # shut down the connection + self.wfile.flush() + #self.connection.shutdown() + except socket.error: + pass def setup(self): '''Setup a working connection''' |