Remove unused signal handler

This commit is contained in:
Mike Cifelli 2022-12-26 17:25:45 -05:00
parent a8366fe00f
commit 8ee47e36e3
1 changed files with 0 additions and 8 deletions

View File

@ -14,7 +14,6 @@ stateFile = 'www/garage.json'
def main(): def main():
signal(SIGTERM, cleanExit())
config = ConfigParser() config = ConfigParser()
config.read('garage.cfg') config.read('garage.cfg')
eastPin = config['garage'].getint('east-pin') eastPin = config['garage'].getint('east-pin')
@ -64,12 +63,5 @@ def persistState():
json.dump(state, file) json.dump(state, file)
def cleanExit():
def _exit_(signum, frame):
sys.exit(0)
return _exit_
if __name__ == '__main__': if __name__ == '__main__':
main() main()