Skip to content

Commit 2f225c4

Browse files
authored
fix(bitswap/httpnet): idempotent Stop() (#920)
1 parent ff5c66b commit 2f225c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bitswap/network/httpnet/httpnet.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,8 @@ func (ht *Network) Start(receivers ...network.Receiver) {
319319
// Other methods should no longer be used after calling Stop().
320320
func (ht *Network) Stop() {
321321
ht.connEvtMgr.Stop()
322-
ht.cooldownTracker.stopCleaner()
323322
ht.closeOnce.Do(func() {
323+
ht.cooldownTracker.stopCleaner()
324324
close(ht.closing)
325325
})
326326
}

0 commit comments

Comments
 (0)