Skip to content

Commit

Permalink
Update monitor.d
Browse files Browse the repository at this point in the history
* Update PR
  • Loading branch information
abraunegg committed Dec 12, 2024
1 parent d191208 commit 0e4721e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/monitor.d
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,7 @@ final class Monitor {
if (debugLogging) {addLogEntry("event IN_CREATE: " ~ path, ["debug"]);}
if (event.mask & IN_ISDIR) {
// fix from #2586
auto cookieToPath1 = cookieToPath.dup();
foreach (cookie, path1; cookieToPath1) {
if (path1 == path) {
cookieToPath.remove(cookie);
Expand All @@ -630,7 +631,7 @@ final class Monitor {
if (debugLogging) {addLogEntry("event IN_CLOSE_WRITE and not IN_ISDIR: " ~ path, ["debug"]);}
// fix from #2586
auto cookieToPath1 = cookieToPath.dup();
foreach (cookie, path1; cookieToPath1) {
foreach (cookie, path1; cookieToPath1) {
if (path1 == path) {
cookieToPath.remove(cookie);
}
Expand Down

0 comments on commit 0e4721e

Please sign in to comment.