diff --git a/modbus_tk/modbus.py b/modbus_tk/modbus.py index 17080d3..e5a4364 100644 --- a/modbus_tk/modbus.py +++ b/modbus_tk/modbus.py @@ -1063,7 +1063,7 @@ def _run_server(self): """main function of the main thread""" try: self._do_init() - while self._go.isSet(): + while self._go.is_set(): self._do_run() LOGGER.debug("%s has stopped", self.__class__) self._do_exit()