initialize stop_event to None

in case outbound mode enabled
This commit is contained in:
onyx-and-iris 2023-08-05 14:05:18 +01:00
parent f082fa8ac5
commit 4af7c0f694

View File

@ -50,6 +50,7 @@ class VbanCmd(metaclass=ABCMeta):
self._pdirty = False
self._ldirty = False
self._script = str()
self.stop_event = None
@abstractmethod
def __str__(self):
@ -109,7 +110,7 @@ class VbanCmd(metaclass=ABCMeta):
)
def stopped(self):
return self.stop_event.is_set()
return self.stop_event is None or self.stop_event.is_set()
def _set_rt(self, cmd: str, val: Union[str, float]):
"""Sends a string request command over a network."""