dispatcher: fix wrong variable (#233)

This commit is contained in:
Noam Meltzer 2016-04-14 23:23:02 +03:00
parent 9a523dbc40
commit e179b27f57

View file

@ -185,7 +185,7 @@ class Dispatcher:
if self.__stop_event.is_set():
self.logger.debug('orderly stopping')
break
elif self.__stop_event.is_set():
elif self.__exception_event.is_set():
self.logger.critical(
'stopping due to exception in another thread')
break