more msd async

This commit is contained in:
Maxim Devaev
2023-03-16 20:35:04 +02:00
parent 59b1d8abbb
commit 27f38ef086
4 changed files with 46 additions and 24 deletions

View File

@@ -82,8 +82,8 @@ class Plugin(BaseUserGpioDriver):
await asyncio.sleep(5)
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 inotify.watch(os.path.dirname(self.__udc_path), InotifyMask.ALL_MODIFY_EVENTS)
await inotify.watch(self.__profile_path, InotifyMask.ALL_MODIFY_EVENTS)
self._notifier.notify()
while True:
need_restart = False