Commit fd2cb7c6 authored by Julien Gilli's avatar Julien Gilli
Browse files

timers: don't mutate unref list while iterating it

Commit 934bfe23

 had introduced a
regression where node would crash trying to access a null unref timer if
a given unref timer's callback would remove other unref timers set to
fire in the future.

More generally, it makes the unrefTimeout function more solid by not
mutating the unrefList while traversing it.

Fixes #8897.

Reviewed-By: default avatarTimothy J Fontaine <tjfontaine@gmail.com>
Reviewed-By: default avatarColin Ihrig <cjihrig@gmail.com>
parent 1425ccd1
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment