Skip to content

Commit

Permalink
add upstream fix for multiple rename (delete) events
Browse files Browse the repository at this point in the history
  • Loading branch information
erezmus committed Jan 5, 2023
1 parent 54802b6 commit daf3383
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/linux/InotifyEventLoop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,14 @@ void InotifyEventLoop::work() {
renameEvent.isStarted = true;
};

auto renameEnd = [&create, &event, &inotifyService, &isDirectoryEvent, &renameEvent]() {
auto renameEnd = [&create, &event, &inotifyService, &isDirectoryRemoval, &renameEvent]() {
if (!renameEvent.isStarted) {
create();
return;
}

if (renameEvent.cookie != event->cookie) {
if (renameEvent.isDirectory) {
if (isDirectoryRemoval) {
inotifyService->removeDirectory(renameEvent.wd);
} else {
inotifyService->remove(renameEvent.wd, renameEvent.name);
Expand Down

0 comments on commit daf3383

Please sign in to comment.