mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-08 11:24:25 +00:00
Get back to the reactor thread sooner
This commit is contained in:
parent
49c5a1f8d5
commit
9d65b5c155
@ -132,15 +132,14 @@ class INotifyEventHandler(FileSystemEventHandler):
|
||||
# ignore events for parent directory
|
||||
return
|
||||
|
||||
reactor.callFromThread(
|
||||
preserve_context(self._maybe_notify),
|
||||
event_filepath_u,
|
||||
event,
|
||||
)
|
||||
self._maybe_notify(event_filepath_u, event)
|
||||
|
||||
def on_any_event(self, event):
|
||||
with ANY_INOTIFY_EVENT(path=event.src_path, event=event):
|
||||
self.process(event)
|
||||
reactor.callFromThread(
|
||||
preserve_context(self.process),
|
||||
event,
|
||||
)
|
||||
|
||||
|
||||
class INotify(PollMixin):
|
||||
|
Loading…
x
Reference in New Issue
Block a user