Bug 1069605 - Make sure settings lock exists before trying to remove it; r=bent

This commit is contained in:
Kyle Machulis 2014-09-18 17:23:27 -07:00
parent abed0464a7
commit 4cb996a29c

View File

@ -711,6 +711,7 @@ let SettingsRequestManager = {
removeLock: function(aLockID) {
if (DEBUG) debug("Removing lock " + aLockID);
if (this.lockInfo[aLockID]) {
let transaction = this.lockInfo[aLockID]._transaction;
if (transaction) {
try {
@ -724,6 +725,7 @@ let SettingsRequestManager = {
}
}
delete this.lockInfo[aLockID];
}
let index = this.settingsLockQueue.indexOf(aLockID);
if (index > -1) {
this.settingsLockQueue.splice(index, 1);