@cryptotaxi247 / kubo / commits / a2e3ea623

dht/notif: bugfix in hanging connects

http://gifs.gifbin.com/012011/1295375531_cat-jump-fail.gif

Juan Batiz-Benet committed Feb 1, 2015 at 01:43 UTC a2e3ea623656af0419f5b8c7b2c50b4d04e86a49
1 file changed +2
routing/dht/notif.go
+2
@@ -18,6 +18,7 @@ func (nn *netNotifiee) Connected(n inet.Network, v inet.Conn) {
18 select {
19 case <-dht.Closing():
20 return
21 + default:
22 }
23 dht.Update(dht.Context(), v.RemotePeer())
24 }
@@ -27,6 +28,7 @@ func (nn *netNotifiee) Disconnected(n inet.Network, v inet.Conn) {
28 select {
29 case <-dht.Closing():
30 return
31 + default:
32 }
33 dht.routingTable.Remove(v.RemotePeer())
34 }