mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 23:04:04 +00:00
close the browser after getBrowser()
This commit is contained in:
parent
499429858c
commit
caa8dd8ec2
1 changed files with 3 additions and 0 deletions
|
@ -221,6 +221,9 @@ class RealBrowserMonitorType extends MonitorType {
|
|||
|
||||
await context.close();
|
||||
|
||||
// Close the browser instance
|
||||
await browser.close();
|
||||
|
||||
if (res.status() >= 200 && res.status() < 400) {
|
||||
heartbeat.status = UP;
|
||||
heartbeat.msg = res.status();
|
||||
|
|
Loading…
Reference in a new issue