fix: retain pending folder files across pause
This commit is contained in:
@@ -188,6 +188,9 @@ class FolderMonitor extends EventEmitter {
|
||||
|
||||
_invalidateLifecycle(paused) {
|
||||
this._generation++;
|
||||
if (paused) {
|
||||
for (const filePath of this._batchBuffer) this._seenFiles.delete(this._normalizePath(filePath));
|
||||
}
|
||||
this._paused = paused;
|
||||
this._scanning = false;
|
||||
this._followUpRequested = false;
|
||||
|
||||
Reference in New Issue
Block a user