background: stop monitoring file after removing from cache

https://bugzilla.gnome.org/show_bug.cgi?id=697395
This commit is contained in:
Ray Strode 2013-04-04 16:36:56 -04:00
parent 007820b7c1
commit 0376f22d41

View File

@ -126,6 +126,11 @@ const BackgroundCache = new Lang.Class({
},
removeImageContent: function(content) {
let filename = content.get_filename();
if (filename && this._fileMonitors[filename])
delete this._fileMonitors[filename];
this._removeContent(this._images, content);
},