Skip to content

ThrottleManager: fix IgnoreStop setter to honor assigned value#27107

Open
cuiweixie wants to merge 1 commit intoPowerShell:masterfrom
cuiweixie:fix-ThrottleManager-IgnoreStop-setter
Open

ThrottleManager: fix IgnoreStop setter to honor assigned value#27107
cuiweixie wants to merge 1 commit intoPowerShell:masterfrom
cuiweixie:fix-ThrottleManager-IgnoreStop-setter

Conversation

@cuiweixie
Copy link
Copy Markdown

Summary

Ensures IgnoreStop can be set to false as intended. The setter previously ignored the assigned value and always set the backing field to true.

Changes

  • In throttlemanager.cs, set _ignoreStop from the property value instead of a constant true.

The setter always assigned _ignoreStop = true instead of the incoming value, so callers could not set IgnoreStop to false.
Copilot AI review requested due to automatic review settings March 27, 2026 18:22
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes a logic bug in the remoting throttle infrastructure where IThrottleOperation.IgnoreStop could not be set to false because the setter always assigned true.

Changes:

  • Update IgnoreStop setter to assign the incoming value to the backing field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants