Merge branch 'nezha-master' into enhance-notification

This commit is contained in:
Akkia 2022-04-17 21:07:19 +08:00
commit 975f11fb9e
No known key found for this signature in database
GPG Key ID: DABE9A4AB2DD7EF3

View File

@ -182,12 +182,7 @@ func (cp *commonPage) ws(c *gin.Context) {
if err != nil {
continue
}
writer, err := conn.NextWriter(websocket.TextMessage)
if err != nil {
break
}
_, err = writer.Write(stat)
if err != nil {
if err := conn.WriteMessage(websocket.TextMessage, stat); err != nil {
break
}
count += 1