Skip to content

Commit

Permalink
fix: redial #56
Browse files Browse the repository at this point in the history
Change-Id: I1b260ddb4e0562dbfefa3826008a09f7de84deae
  • Loading branch information
andeya committed Aug 1, 2019
1 parent 2c58585 commit f55c7e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ func (p *peer) newSessionForClient(dialFunc func() (net.Conn, error), addr strin
time.Sleep(p.redialInterval)
Debugf("trying to redial... (network:%s, addr:%s, id:%s)", p.network, sess.RemoteAddr().String(), sess.ID())
stat = p.renewSessionForClient(sess, dialFunc, addr, protoFuncs)
if !stat.OK() {
if stat.OK() {
Infof("redial ok (network:%s, addr:%s, id:%s)", p.network, sess.RemoteAddr().String(), sess.ID())
return true
}
Expand Down

0 comments on commit f55c7e5

Please sign in to comment.