autorunManager: Fix another regression
We may not have a resident source to destroy if no mounts are found.
This commit is contained in:
@ -169,7 +169,8 @@ const AutorunManager = new Lang.Class({
|
||||
},
|
||||
|
||||
disable: function() {
|
||||
this._residentSource.destroy();
|
||||
if (this._residentSource)
|
||||
this._residentSource.destroy();
|
||||
this._volumeMonitor.disconnect(this._mountAddedId);
|
||||
this._volumeMonitor.disconnect(this._mountRemovedId);
|
||||
},
|
||||
|
Reference in New Issue
Block a user