Skip to content

Commit

Permalink
feat: 修复重连一次后不能继续重连的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
chenqinghe committed Oct 18, 2022
1 parent c3b37e7 commit 7bb4a32
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ func (cli *Client) reconnect(sess *Session) {
for cli.needReconnect(sess) && policy.Retry() {
if s, err := cli.Dial(addr.Network(), addr.String()); err == nil {
s.data = sess.data
s.id = sess.id
s.user = sess.user
s.lastPackTs = sess.lastPackTs
s.requests = sess.requests
Expand Down

0 comments on commit 7bb4a32

Please sign in to comment.