core: Check error on ListenQUIC

This commit is contained in:
Matthew Holt 2022-09-08 12:36:31 -06:00
parent c19f207237
commit 50748e19c3
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5

View file

@ -105,6 +105,9 @@ func ListenQUIC(addr string, tlsConf *tls.Config, activeRequests *int64) (quic.E
} }
return &sharedQuicListener{EarlyListener: el, key: lnKey}, nil return &sharedQuicListener{EarlyListener: el, key: lnKey}, nil
}) })
if err != nil {
return nil, err
}
ctx, cancel := context.WithCancel(context.Background()) ctx, cancel := context.WithCancel(context.Background())
return &fakeCloseQuicListener{ return &fakeCloseQuicListener{