Commit 0e7148b5 authored by Saul Ibarra's avatar Saul Ibarra

Fixed exception when restarting log manager

parent 3cb4f90b
...@@ -106,7 +106,7 @@ class LogManager(object): ...@@ -106,7 +106,7 @@ class LogManager(object):
self._siptrace_packet_count = 0 self._siptrace_packet_count = 0
self.event_queue = EventQueue(handler=self._process_notification, name='Log handling') self.event_queue = EventQueue(handler=self._process_notification, name='Log handling')
self.event_queue.start() self.event_queue.start()
while settings.logs.trace_notifications and self.notification_queue.notifications: while settings.logs.trace_notifications and self.notification_queue and self.notification_queue.notifications:
notification = self.notification_queue.notifications.popleft() notification = self.notification_queue.notifications.popleft()
self.handle_notification(notification) self.handle_notification(notification)
self.notification_queue = None self.notification_queue = None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment