diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-07-14 05:37:47 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-07-14 05:37:57 +0000 |
commit | 764fe1d30bdf8202a3abcfeed1275941995b3fa8 (patch) | |
tree | 0bcedb592c11410a68f971d1542c9f852e965081 /staslib/ctrl.py | |
parent | Releasing debian version 2.3~rc1-2. (diff) | |
download | nvme-stas-764fe1d30bdf8202a3abcfeed1275941995b3fa8.tar.xz nvme-stas-764fe1d30bdf8202a3abcfeed1275941995b3fa8.zip |
Merging upstream version 2.3~rc2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'staslib/ctrl.py')
-rw-r--r-- | staslib/ctrl.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/staslib/ctrl.py b/staslib/ctrl.py index ad221e0..9f415b3 100644 --- a/staslib/ctrl.py +++ b/staslib/ctrl.py @@ -169,9 +169,9 @@ class Controller(stas.ControllerABC): # pylint: disable=too-many-instance-attri self._udev.unregister_for_device_events(self._on_udev_notification) self._kill_ops() # Kill all pending operations self._ctrl = None - - # Defer removal of this object to the next main loop's idle period. - GLib.idle_add(self._serv.remove_controller, self, True) + self._device = None + self._connect_attempts = 0 + self._retry_connect_tmr.start() def _get_cfg(self): '''Get configuration parameters. These may either come from the [Global] |