mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-02-08 00:21:11 +01:00
This code contains the same bug that the previous commit fixed in `waitForEvent`, namely that we don't clear the timeout if the event is triggered. By using the now fixed `waitForEvent` function we not only deduplicate this code but we also fix this issue so that no incorrect timeout logs show up anymore.