forked from Mirrors/gomuks
websocket: don't send initial data unless logged in
This commit is contained in:
parent
2c92a69400
commit
96b11fca8e
1 changed files with 3 additions and 1 deletions
|
@ -202,7 +202,9 @@ func (gmx *Gomuks) HandleWebsocket(w http.ResponseWriter, r *http.Request) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
go sendImageAuthToken()
|
go sendImageAuthToken()
|
||||||
go gmx.sendInitialData(ctx, conn)
|
if gmx.Client.IsLoggedIn() {
|
||||||
|
go gmx.sendInitialData(ctx, conn)
|
||||||
|
}
|
||||||
log.Debug().Msg("Connection initialization complete")
|
log.Debug().Msg("Connection initialization complete")
|
||||||
var closeErr websocket.CloseError
|
var closeErr websocket.CloseError
|
||||||
for {
|
for {
|
||||||
|
|
Loading…
Add table
Reference in a new issue