Skip to content

Commit

Permalink
Use WithContext method
Browse files Browse the repository at this point in the history
  • Loading branch information
magiconair committed Jun 5, 2023
1 parent 096fb15 commit e7fe39b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ func (c *Client) ActivateSessionWithContext(ctx context.Context, s *Session) err
// We decided not to check the error of CloseSession() since we
// can't do much about it anyway and it creates a race in the
// re-connection logic.
c.CloseSession()
c.CloseSessionWithContext(ctx)

c.setSession(s)
return nil
Expand Down

0 comments on commit e7fe39b

Please sign in to comment.