Skip to content

Commit 69347fe

Browse files
authored
Update channel.go (#92)
when reconnect close,close once only.
1 parent 049871f commit 69347fe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

conn/channel.go

+1
Original file line numberDiff line numberDiff line change
@@ -943,6 +943,7 @@ func (hc *channelSession) processMessages() {
943943
}
944944
hc.c = con
945945
hc.closed = make(chan interface{})
946+
hc.closeOnce = sync.Once{}
946947
hc.nodeInfo.Protocol = 1
947948
go hc.processMessages()
948949
if err = hc.handshakeChannel(); err != nil {

0 commit comments

Comments
 (0)