diff --git a/tunnelrpc/quic/session_server.go b/tunnelrpc/quic/session_server.go index 1d724742..82daa306 100644 --- a/tunnelrpc/quic/session_server.go +++ b/tunnelrpc/quic/session_server.go @@ -51,7 +51,7 @@ func (s *SessionManagerServer) Serve(ctx context.Context, stream io.ReadWriteClo select { case <-rpcConn.Done(): - return rpcConn.Err() + return nil case <-ctx.Done(): return ctx.Err() }