-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes duplicate creation of PDFWorker for the same port. #8508
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems fine to me, thanks!
Feel free to land this, with passing tests (and optional nit addressed).
src/display/api.js
Outdated
@@ -1153,6 +1153,8 @@ class LoopbackPort { | |||
} | |||
} | |||
|
|||
var pdfWorkerPorts = new WeakMap(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Can we use let
instead when adding new code?
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @yurydelendik received. Current queue size: 0 Live output at: http://54.67.70.0:8877/73c358e0ab1ecf9/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @yurydelendik received. Current queue size: 0 Live output at: http://54.215.176.217:8877/63671040d60828c/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.67.70.0:8877/73c358e0ab1ecf9/output.txt Total script time: 17.10 mins
|
From: Bot.io (Windows)SuccessFull output at http://54.215.176.217:8877/63671040d60828c/output.txt Total script time: 30.02 mins
|
Fixes duplicate creation of PDFWorker for the same port.
Fixes #8246