Event should not process output when the event is done
# -*- coding: utf-8 -*-
__author__ = 'Marcin Usielski, Michal Ernst'
-__copyright__ = 'Copyright (C) 2018, Nokia'
+__copyright__ = 'Copyright (C) 2018-2019, Nokia'
__email__ = 'marcin.usielski@nokia.com, michal.ernst@nokia.com'
import abc
@@ -41,6 +41,7 @@ class TextualEvent(Event):
"""
lines = data.splitlines(True)
for line in lines:
+ if not self.done():
if self._last_not_full_line is not None:
line = self._last_not_full_line + line
self._last_not_full_line = None
