mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
Don't watch inotify modify events because they fires on every write()
This commit is contained in:
@@ -81,8 +81,8 @@ class Plugin(BaseUserGpioDriver):
|
||||
await asyncio.sleep(5)
|
||||
|
||||
with Inotify() as inotify:
|
||||
await inotify.watch_all_modify(os.path.dirname(self.__udc_path))
|
||||
await inotify.watch_all_modify(self.__profile_path)
|
||||
await inotify.watch_all_changes(os.path.dirname(self.__udc_path))
|
||||
await inotify.watch_all_changes(self.__profile_path)
|
||||
self._notifier.notify()
|
||||
while True:
|
||||
need_restart = False
|
||||
|
||||
Reference in New Issue
Block a user