mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-24 07:21:09 -04:00
added timeout for removing the dead loop state
This commit is contained in:
parent
227bbdea2f
commit
22256dfcd2
2 changed files with 5 additions and 2 deletions
|
@ -359,8 +359,10 @@ class Monitor extends BeanModel {
|
|||
});
|
||||
bean.status = UP;
|
||||
} catch (error) {
|
||||
bean.status = DOWN;
|
||||
bean.msg = error.message;
|
||||
if (error.message !== "Timeout") {
|
||||
bean.status = DOWN;
|
||||
bean.msg = error.message;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
bean.msg = "Unknown Monitor Type";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue