mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1136434 - RequestSync API should delete all the timers when a task is unregistered, r=ehsan
This commit is contained in:
parent
419a713113
commit
aeef779cd5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user