Skip to content

Commit

Permalink
Merge pull request #1218 from libp2p/fix-oas-shutdown
Browse files Browse the repository at this point in the history
close the ObserverAddrManager when the ID service is closed
  • Loading branch information
marten-seemann authored Oct 4, 2021
2 parents e70d7cf + 105f1e6 commit 2a7d021
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions p2p/protocol/identify/id.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ func (ids *IDService) loop() {
// Close shuts down the IDService
func (ids *IDService) Close() error {
ids.ctxCancel()
ids.observedAddrs.Close()
ids.refCount.Wait()
return nil
}
Expand Down

0 comments on commit 2a7d021

Please sign in to comment.