Fix typo in Windows shutdown handler

This commit is contained in:
Andrew Resch 2011-08-08 10:42:06 -07:00
parent 9c4cd86492
commit 93a860f2a1
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ class Daemon(object):
def win_handler(ctrl_type): def win_handler(ctrl_type):
log.debug("ctrl_type: %s", ctrl_type) log.debug("ctrl_type: %s", ctrl_type)
if ctrl_type == CTRL_CLOSE_EVENT or ctrl_type == CTRL_SHUTDOWN_EVENT: if ctrl_type == CTRL_CLOSE_EVENT or ctrl_type == CTRL_SHUTDOWN_EVENT:
self.__shutdown() self._shutdown()
return 1 return 1
SetConsoleCtrlHandler(win_handler) SetConsoleCtrlHandler(win_handler)