p2p: fixes for actual connections
The unit test hooks were turned on 'in production'.
This commit is contained in:
@ -408,7 +408,9 @@ func (srv *Server) startPeer(conn net.Conn, dest *discover.Node) {
|
||||
return
|
||||
}
|
||||
|
||||
srv.newPeerHook(p)
|
||||
if srv.newPeerHook != nil {
|
||||
srv.newPeerHook(p)
|
||||
}
|
||||
p.run()
|
||||
srv.removePeer(p)
|
||||
}
|
||||
|
Reference in New Issue
Block a user