diff --git a/plugins/tiddlywiki/filesystem/filesystemadaptor.js b/plugins/tiddlywiki/filesystem/filesystemadaptor.js index c5eb61bcc..9f4e422b8 100644 --- a/plugins/tiddlywiki/filesystem/filesystemadaptor.js +++ b/plugins/tiddlywiki/filesystem/filesystemadaptor.js @@ -188,7 +188,9 @@ FileSystemAdaptor.prototype.deleteTiddler = function(title,callback) { } else { if(this.watchers[fileInfo.filepath]) { this.watchers[fileInfo.filepath].close(); + delete this.watchers[fileInfo.filepath]; } + delete this.pending[fileInfo.filepath]; // Delete the file fs.unlink(fileInfo.filepath,function(err) { if(err) {