mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-02 12:07:52 +00:00
Bug 1069605 - Make sure settings lock exists before trying to remove it; r=bent
This commit is contained in:
parent
abed0464a7
commit
4cb996a29c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user