mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-04 16:40:21 +00:00
不忽略首次请求就出错的情况
This commit is contained in:
1 parent
e6d46f11fe
commit
09a7d77bea
1 file changed
+1
-1
@@ -416,7 +416,7 @@ func (ss *ServiceSentinel) worker() {
|
||||
ss.lastStatus[mh.GetId()] = stateCode
|
||||
|
||||
// 判断是否需要发送通知
|
||||
isNeedSendNotification := ss.monitors[mh.GetId()].Notify && lastStatus != 0
|
||||
isNeedSendNotification := ss.monitors[mh.GetId()].Notify && (lastStatus != 0 || stateCode == StatusDown)
|
||||
if isNeedSendNotification {
|
||||
ServerLock.RLock()
|
||||
|
||||
|
||||
Reference in new issue
Block a user