Fix #2576: PhysicalConnection: Better shutdown handling by NickCraver · Pull Request #2629 · StackExchange/StackExchange.Redis (original) (raw)
This adds a bit of null ref handling (few ifs). Fixes #2576.
Overall, this is biting people in the shutdown race, more likely under load, so let's eat the if checks here to prevent it. I decided to go with the specific approach here as to not affect inlining.