Bug 1136434 - RequestSync API should delete all the timers when a task is unregistered, r=ehsan

This commit is contained in:
Andrea Marchesini 2015-03-03 11:07:26 +00:00
parent 419a713113
commit aeef779cd5

View File

@ -249,9 +249,8 @@ this.RequestSyncService = {
debug('removeRegistrationInternal');
let obj = this._registrations[aKey][aTaskName];
if (obj.timer) {
obj.timer.cancel();
}
this.removeTimer(obj);
// It can be that this task has been already schedulated.
this.removeTaskFromQueue(obj);