diff options
author | Maxim Devaev <[email protected]> | 2022-08-07 19:04:32 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-08-07 19:04:32 +0300 |
commit | ec9785b4be4afb8667e6968a0454aeca62a190e2 (patch) | |
tree | 0b5c7d1b03041867c78f5533a8dd8f488711b073 /kvmd/plugins/ugpio/otgconf.py | |
parent | aa630988cc09f31d412a62c5480d4bec1a7c626e (diff) |
simplified AioNotifier()
Diffstat (limited to 'kvmd/plugins/ugpio/otgconf.py')
-rw-r--r-- | kvmd/plugins/ugpio/otgconf.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kvmd/plugins/ugpio/otgconf.py b/kvmd/plugins/ugpio/otgconf.py index efe1b5c4..28eae8fe 100644 --- a/kvmd/plugins/ugpio/otgconf.py +++ b/kvmd/plugins/ugpio/otgconf.py @@ -76,7 +76,7 @@ class Plugin(BaseUserGpioDriver): while True: try: while True: - await self._notifier.notify() + self._notifier.notify() if os.path.isfile(self.__udc_path): break await asyncio.sleep(5) @@ -84,7 +84,7 @@ class Plugin(BaseUserGpioDriver): with Inotify() as inotify: inotify.watch(os.path.dirname(self.__udc_path), InotifyMask.ALL_MODIFY_EVENTS) inotify.watch(self.__profile_path, InotifyMask.ALL_MODIFY_EVENTS) - await self._notifier.notify() + self._notifier.notify() while True: need_restart = False need_notify = False @@ -97,7 +97,7 @@ class Plugin(BaseUserGpioDriver): if need_restart: break if need_notify: - await self._notifier.notify() + self._notifier.notify() except Exception: logger.exception("Unexpected OTG-bind watcher error") await asyncio.sleep(1) |