mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 08:11:00 +00:00
Fix a rare crash when a new cert is generated during cerdir removal.
This commit is contained in:
parent
d9db1cf5b3
commit
ee71bcfbe8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user