nictuku / dht

Kademlia/Mainline DHT node in Go.
Other
826 stars 144 forks source link

Allow shutdown when not consuming results #51

Closed mjgarton closed 8 years ago

mjgarton commented 8 years ago

Normally, we expect the caller to be consuming from PeersRequestResults and will block otherwise. This change ensures we don't block when shutting down and the caller is not consuming from PeersRequestResults.

nictuku commented 8 years ago

Thanks!