fix multiple worker issue

This commit is contained in:
Raphael Deem 2017-03-26 12:07:42 -07:00
parent df9884de3c
commit b583147fba

View File

@ -451,8 +451,8 @@ def serve_multiple(server_settings, workers, stop_event=None):
if stop_event is None:
stop_event = Event()
signal_func(SIGINT, lambda s, f: stop_event.set())
signal_func(SIGTERM, lambda s, f: stop_event.set())
signal_func(SIGINT, lambda s, f: loop.close())
signal_func(SIGTERM, lambda s, f: loop.close())
processes = []
for _ in range(workers):