Skip to content

Commit

Permalink
Update channel.go (#92)
Browse files Browse the repository at this point in the history
when reconnect close,close once only.
  • Loading branch information
joy-shuang authored Dec 7, 2020
1 parent 049871f commit 69347fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions conn/channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -943,6 +943,7 @@ func (hc *channelSession) processMessages() {
}
hc.c = con
hc.closed = make(chan interface{})
hc.closeOnce = sync.Once{}
hc.nodeInfo.Protocol = 1
go hc.processMessages()
if err = hc.handshakeChannel(); err != nil {
Expand Down

0 comments on commit 69347fe

Please sign in to comment.