Skip to content

Commit 5db1af6

Browse files
committed
minor change - nil for cancel func at peer reset
1 parent fc3ff84 commit 5db1af6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

signal/peer/peer.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ func (p *Peer) Reset() {
6565
p.StreamID = 0
6666
p.Stream = nil
6767
p.RegisteredAt = time.Time{}
68+
p.Cancel = nil
6869
peerPool.Put(p)
6970
}
7071

0 commit comments

Comments
 (0)