Commit 199acda7 authored by Steven Allen's avatar Steven Allen

fix: really obey the context

The internal nat discovery logic doesn't properly propagate the context.
parent 4b355d43
......@@ -70,6 +70,9 @@ func DiscoverNATs(ctx context.Context) <-chan NAT {
if !ok {
natpmp = nil
}
case <-ctx.Done():
// timeout.
return
}
if ok {
select {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment