mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
Fix watchdog timer cleanup (#64)
Fix a bug in f7cd004
which prevents the cleanup of the watchdog timer, thus keeping the Node.js process alive for this._maxTime msec no matter what.
This commit is contained in:
parent
f7cd0048af
commit
ff4a389274
@ -41,7 +41,7 @@ class Navigator {
|
||||
let certificateError = new Promise(fulfill => this._client.once('Security.certificateError', fulfill)).then(() => false);
|
||||
let networkIdle = new Promise(fulfill => this._networkIdleCallback = fulfill).then(() => true);
|
||||
let loadEventFired = new Promise(fulfill => this._client.once('Page.loadEventFired', fulfill)).then(() => true);
|
||||
let watchdog = new Promise(fulfill => setTimeout(fulfill, this._maxTime)).then(() => false);
|
||||
let watchdog = new Promise(fulfill => this._maximumTimer = setTimeout(fulfill, this._maxTime)).then(() => false);
|
||||
|
||||
// Await for the command to throw exception in case of illegal arguments.
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user