We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3f87eb commit 09afc37Copy full SHA for 09afc37
1 file changed
src/linux_arctis_manager/core.py
@@ -164,6 +164,11 @@ async def loop(self):
164
_retry = True
165
self.logger.warning("USB I/O error (errno %d), tearing down device for reset...", e.errno)
166
self.teardown()
167
+ await asyncio.sleep(2.0)
168
+ self.configure_virtual_sinks()
169
+ if self.usb_device is None:
170
+ self.logger.error("Device did not recover after USB I/O error (errno %d), exiting for systemd restart", e.errno)
171
+ sys.exit(1)
172
173
def on_device_connected(self, vendor_id: int, product_id: int) -> None:
174
for device_config in self.device_configurations:
0 commit comments