check rt
This commit is contained in:
parent
14401c831a
commit
60301c9892
1 changed files with 2 additions and 2 deletions
|
@ -104,7 +104,7 @@ func (ws *wsSession) Go(ctx context.Context) error {
|
|||
}
|
||||
|
||||
err = authP.handleMsg(ctx, rdr)
|
||||
if err != nil {
|
||||
if err != nil || ws.refreshToken == nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
@ -158,7 +158,7 @@ func (ws *wsSession) Go(ctx context.Context) error {
|
|||
log.Error().Err(err).Msg("handleMsg")
|
||||
}
|
||||
case <-ctx.Done():
|
||||
close(msgChan)
|
||||
close(msgChan) // maybe remove this?
|
||||
return nil
|
||||
case m := <-write:
|
||||
err := ws.conn.WriteJSON(m)
|
||||
|
|
Loading…
Reference in a new issue