genital herpes while pregnant

So I just found out on Monday that I might have genital herpes and I am freaking out. I know for a fact my husband would never cheat and I would never cheat. I'm just so worried about what is going to happen. Since I'm 37 weeks basically my doctor put me on medicine and said there is a good chance I will have to have a c-section since right now I have an outbreak and it could last up to 2-4 weeks since this is my first one. I'm freaking out and don't know what to think. Has anyone went through this and nothing bad has happened?