mirror of
https://github.com/evennia/evennia.git
synced 2026-04-05 15:37:17 +02:00
Move the SetCtrlHandler call before the firing of the event.
This commit is contained in:
parent
870b417855
commit
3a4a097163
1 changed files with 1 additions and 1 deletions
|
|
@ -719,8 +719,8 @@ def kill(pidfile, signal=SIG, succmsg="", errmsg="",
|
|||
# Windows can only send a SIGINT-like signal to
|
||||
# *every* process spawned off the same console, so we must
|
||||
# avoid killing ourselves here.
|
||||
GenerateConsoleCtrlEvent(CTRL_C_EVENT, 0)
|
||||
SetConsoleCtrlHandler(None, True)
|
||||
GenerateConsoleCtrlEvent(CTRL_C_EVENT, 0)
|
||||
except KeyboardInterrupt:
|
||||
pass
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue