Skip to content

Commit

Permalink
Fixing inotify instance limit exhaustion
Browse files Browse the repository at this point in the history
  • Loading branch information
maryamariyan committed Aug 27, 2020
1 parent beb62fa commit e8669aa
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,10 @@ public IChangeToken CreateFileChangeToken(string filter)
}

IChangeToken changeToken = GetOrAddChangeToken(filter);
TryEnableFileSystemWatcher();
if (!PollForChanges)
{
TryEnableFileSystemWatcher();
}

return changeToken;
}
Expand Down

0 comments on commit e8669aa

Please sign in to comment.