From 6d44a75138b245099368004a7031127118a98149 Mon Sep 17 00:00:00 2001 From: Jake Hillion Date: Wed, 31 Mar 2021 18:32:27 +0100 Subject: [PATCH] udp start context --- udp/flow.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/udp/flow.go b/udp/flow.go index 81b67d3..d552d93 100644 --- a/udp/flow.go +++ b/udp/flow.go @@ -111,10 +111,14 @@ func (f *InitiatedFlow) Reconnect(ctx context.Context) error { go func() { seq, err := f.congestion.Sequence(ctx) if err != nil { - + return } for !f.isAlive { + if ctx.Err() != nil { + return + } + p := Packet{ ack: 0, nack: 0,