Don't beat yourself up about this.
It's not easy being around someone who is ill. I'm pretty sure he wasn't exactly giving off positive vibes whilst he was unwell. That's not really easy to handle.
You've reassessed the situation.
He won't be unwell forever and you will move through this. Hang in there.