Don't relay cached errors or warnings
This commit is contained in:
parent
0ab154398d
commit
0ee51d90fd
1 changed files with 3 additions and 0 deletions
|
|
@ -114,6 +114,9 @@ func (h *SocketHub) welcome(client *SocketClient, params []util.Param) {
|
|||
// build json object
|
||||
_, _ = msg.WriteString("{")
|
||||
for _, p := range params {
|
||||
if p.Key == "error" || p.Key == "warn" {
|
||||
continue
|
||||
}
|
||||
if msg.Len() > 1 {
|
||||
_, _ = msg.WriteString(",")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue