Fix a rare crash when a new cert is generated during cerdir removal.

This commit is contained in:
Aldo Cortesi 2011-09-11 09:06:46 +12:00
parent d9db1cf5b3
commit ee71bcfbe8

View File

@ -445,8 +445,11 @@ class ProxyServer(ServerBase):
self.RequestHandlerClass(self.config, request, client_address, self, self.masterq)
def shutdown(self):
shutil.rmtree(self.certdir)
ServerBase.shutdown(self)
try:
shutil.rmtree(self.certdir)
except OSError:
pass
# Command-line utils