As far as I can tell, the close method of PeerGroup does successfully close it, but the callback is called before it's really closed. Specifically, it looks like TCP connections can still be opened after close is called. Maybe we could count the number of open TCP connections and only call the callback after count goes to zero?
As far as I can tell, the
close
method ofPeerGroup
does successfully close it, but the callback is called before it's really closed. Specifically, it looks like TCP connections can still be opened afterclose
is called. Maybe we could count the number of open TCP connections and only call the callback after count goes to zero?