Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong condition in StockTicker.OpenMarket() #2

Open
GeorgSchneider opened this issue Jan 5, 2012 · 0 comments
Open

Wrong condition in StockTicker.OpenMarket() #2

GeorgSchneider opened this issue Jan 5, 2012 · 0 comments

Comments

@GeorgSchneider
Copy link

In the check-lock-check pattern in StockTicker.OpenMarket(), the two if-clauses

if (MarketState != MarketState.Open || MarketState != MarketState.Opening)

have no effect, i.e. always evaluate to true. It should probably read

if (MarketState != MarketState.Open && MarketState != MarketState.Opening)
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

No branches or pull requests

1 participant