Skip to content

Commit ac34f94

Browse files
committed
TUN-8848: Don't treat connection shutdown as an error condition when RPC server is done
1 parent d8c7f1c commit ac34f94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tunnelrpc/quic/session_server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func (s *SessionManagerServer) Serve(ctx context.Context, stream io.ReadWriteClo
5151

5252
select {
5353
case <-rpcConn.Done():
54-
return rpcConn.Err()
54+
return nil
5555
case <-ctx.Done():
5656
return ctx.Err()
5757
}

0 commit comments

Comments
 (0)