mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-20 18:43:41 -05:00
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
|
||||
}
|
||||
go sendImageAuthToken()
|
||||
go gmx.sendInitialData(ctx, conn)
|
||||
if gmx.Client.IsLoggedIn() {
|
||||
go gmx.sendInitialData(ctx, conn)
|
||||
}
|
||||
log.Debug().Msg("Connection initialization complete")
|
||||
var closeErr websocket.CloseError
|
||||
for {
|
||||
|
|
Loading…
Add table
Reference in a new issue