diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2022-09-08 12:36:31 -0600 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2022-09-08 12:36:31 -0600 |
commit | 50748e19c34fc90882bbb268c95a2a0acb051752 (patch) | |
tree | b43a254b644d28cf38287cfbe793e6924a9cfc8f | |
parent | c19f2072379e18fbf3b2409ecd49ca023d62b882 (diff) |
core: Check error on ListenQUIC
-rw-r--r-- | listeners.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/listeners.go b/listeners.go index 5914443..b494910 100644 --- a/listeners.go +++ b/listeners.go @@ -105,6 +105,9 @@ func ListenQUIC(addr string, tlsConf *tls.Config, activeRequests *int64) (quic.E } return &sharedQuicListener{EarlyListener: el, key: lnKey}, nil }) + if err != nil { + return nil, err + } ctx, cancel := context.WithCancel(context.Background()) return &fakeCloseQuicListener{ |