missed from last commit: setting ws.Authed to nil.

This commit is contained in:
fiatjaf
2023-12-27 12:55:05 -03:00
parent 21b08cb044
commit 0f7d26f26e

View File

@@ -206,6 +206,7 @@ func (rl *Relay) HandleWebsocket(w http.ResponseWriter, r *http.Request) {
ws.authLock.Lock()
if ws.Authed != nil {
close(ws.Authed)
ws.Authed = nil
}
ws.authLock.Unlock()
ws.WriteJSON(nostr.OKEnvelope{EventID: env.Event.ID, OK: true})