TODO: review this

This commit is contained in:
Alex Grintsvayg 2018-06-21 13:39:25 -04:00
parent ce7e793cf0
commit 7375c831fd

View file

@ -422,6 +422,9 @@ func (n *Node) SendAsync(ctx context.Context, contact Contact, req Request, opti
case res := <-tx.res: case res := <-tx.res:
ch <- &res ch <- &res
return return
//TODO: does this belong here?
//case <-n.stop.Ch():
// return
case <-ctx.Done(): case <-ctx.Done():
return return
case <-time.After(udpTimeout): case <-time.After(udpTimeout):