dht: Remove redundant code which caused rare crash
This commit is contained in:
parent
74d3598656
commit
288abb1c6b
|
@ -715,9 +715,7 @@ func (s *Server) nodeByID(id string) *node {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *Server) handleQuery(source dHTAddr, m Msg) {
|
func (s *Server) handleQuery(source dHTAddr, m Msg) {
|
||||||
args := m["a"].(map[string]interface{})
|
node := s.getNode(source, m.SenderID())
|
||||||
node := s.getNode(source, m.ID())
|
|
||||||
node.SetIDFromString(args["id"].(string))
|
|
||||||
node.lastGotQuery = time.Now()
|
node.lastGotQuery = time.Now()
|
||||||
// Don't respond.
|
// Don't respond.
|
||||||
if s.config.Passive {
|
if s.config.Passive {
|
||||||
|
|
Loading…
Reference in New Issue