Fixes to solve problems with issue #49

Hello. These are some fixes to solve the problems in issue #49
This commit is contained in:
Julio Poveda 2020-05-13 14:21:57 -05:00 committed by GitHub
parent db06cd73bd
commit 20e75c9228
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -371,8 +371,8 @@ def main(default_config_file, is_gateway):
openmtc_server.api.events = Api.events
shutdown_event = GEventEvent()
gevent.signal(signal.SIGTERM, shutdown_event.set)
gevent.signal(signal.SIGINT, shutdown_event.set)
signal.signal(signal.SIGTERM, shutdown_event.set)
signal.signal(signal.SIGINT, shutdown_event.set)
try:
init_component(otd, Api)