Websocket cleanup

This commit is contained in:
Dane Everitt
2020-09-12 22:12:23 -07:00
parent 0295603943
commit f2a6d6b3c5
2 changed files with 2 additions and 8 deletions

View File

@@ -95,8 +95,7 @@ func (h *Handler) SendJson(v *Message) error {
// Do not send JSON down the line if the JWT on the connection is not
// valid!
if err := h.TokenValid(); err != nil {
h.server.Log().WithField("error", err).Warn("invalid JWT detected for server websocket!")
h.SendErrorJson(*v, err)
return nil
}