1
0
mirror of https://github.com/fumiama/terasu-cloudflared.git synced 2026-06-05 00:50:24 +08:00

TUN-8848: Don't treat connection shutdown as an error condition when RPC server is done

This commit is contained in:
chungthuang
2025-01-09 10:07:12 -06:00
parent d8c7f1c1ec
commit ac34f94d42

View File

@@ -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()
}