mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 23:08:39 +09:00
[xpcom] Timer cleanup, assertions and comments.
This commit is contained in:
parent
ba0e98e3bd
commit
bd80099e2c
4 changed files with 24 additions and 7 deletions
|
|
@ -441,6 +441,8 @@ nsTimerImpl::Fire(int32_t aGeneration)
|
|||
// Don't fire callbacks or fiddle with refcounts when the mutex is locked.
|
||||
// If some other thread Cancels/Inits after this, they're just too late.
|
||||
if (aGeneration != mGeneration) {
|
||||
// This timer got rescheduled or cancelled before we fired, so ignore this
|
||||
// firing
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue