mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
More graceful handling of tiddler delete in filesystemadaptor watch code
This commit is contained in:
parent
ee236060c7
commit
4849bd43c8
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user