Skip to content

Commit 8a9cce1

Browse files
authored
Handle KBI (#821)
1 parent d63ed29 commit 8a9cce1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

proxy/core/acceptor/threadless.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,8 @@ async def _run_forever(self) -> None:
313313
break
314314
tick = 0
315315
tick += 1
316+
except KeyboardInterrupt:
317+
pass
316318
finally:
317319
if self.loop:
318320
self.loop.stop()

0 commit comments

Comments
 (0)