Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

Fixed bug, caused by boolean typo in ObjectPool.StartShrinkTimer. #248

Merged
merged 1 commit into from
Jul 16, 2018
Merged

Fixed bug, caused by boolean typo in ObjectPool.StartShrinkTimer. #248

merged 1 commit into from
Jul 16, 2018

Conversation

joshua-light
Copy link
Contributor

Hi again!

So, as mentioned in issue #217, there is a little bug with check in TakeWhile call.

disposedValue means: if object is already disposed or not, so we should take while object is not disposed.

I've done two things:

  • Fixed the actual bug by inverting the checks.
  • Renamed disposedValue to isDisposed for the sake of clarity.

Just renamed `disposedValue` to `isDisposed` for clarity and inverted check in `TakeWhile` calls.
@joshua-light joshua-light changed the title Fixed bug, caused by bollean typo in ObjectPool.StartShrinkTimer. Fixed bug, caused by boolean typo in ObjectPool.StartShrinkTimer. Apr 2, 2018
@neuecc neuecc merged commit de0911e into neuecc:master Jul 16, 2018
@neuecc
Copy link
Owner

neuecc commented Jul 16, 2018

thanks!

EarMaster pushed a commit to EarMaster/UniRx that referenced this pull request Jun 12, 2019
…ewhile-fix

Fixed bug, caused by boolean typo in `ObjectPool.StartShrinkTimer`.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants