mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-21 22:58:24 +00:00
windows: fix file editing
tornado's asnycio patch does not take nonexisting file descriptors very well, so we need to catch errors here.
This commit is contained in:
parent
9688618bbd
commit
82529d88f0
@ -444,7 +444,10 @@ class Screen(BaseScreen, RealTerminal):
|
||||
self._input_thread = None
|
||||
|
||||
for handle in self._current_event_loop_handles:
|
||||
event_loop.remove_watch_file(handle)
|
||||
try:
|
||||
event_loop.remove_watch_file(handle)
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
if self._input_timeout:
|
||||
event_loop.remove_alarm(self._input_timeout)
|
||||
|
Loading…
Reference in New Issue
Block a user