Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Similar to: googleapis#7588 This code allowed callers to (rightfully) move-out the `StatusOr` that was held in `current_`. Therefore, it's a bug if we then consult the status of `current_.ok()`, because it may be in a moved-from state. The fix is to track the `current_ok_` bit separately, so that we only ever assign to `current_` and never read it after it could have been moved.
- Loading branch information