1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07:19 +00:00

More graceful handling of tiddler delete in filesystemadaptor watch code

This commit is contained in:
natecain 2013-10-11 17:54:47 -04:00
parent ee236060c7
commit 4849bd43c8

View File

@ -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) {