I overreacted last night, I feel some guilt

My husband, brother in law, and myself went out for some food and have a few beers. We cashed out, but before we left they wanted to catch up with a guy they graduated with. My husband never goes over and says hi cause he doesn’t want me to sit there alone which is nice of him. So he went with his brother anyways. I’m sitting there for a half hour, I did order another beer and I was just surfing through my phone relaxing. Finally after an hour I get up and grab all our coats, food boxes, and my purse. I walk over and we stay for another hour at least. We got home and he said I was trying to get your attention you could of came over. I personally didn’t want to cause guy time is important and he never really goes out of his way to say hi he’s just the waving hey type of guy. I just yelled well you should of just came over and said hey we’re staying come sit with us instead of looking at me across the restaurant trying to get my attention. It just would of been more respectful in my opinion if you even text me instead of leaving the conversation completely to get me. I fell bad this morning cause I should of just joined in but at the same time I feel mad cause I was sitting there for an hour.. it’s been a rough week for us so we’re both burnt out: he shut down the wrong stuff at work(refinery) which is a big no no, I just had another miscarriage. All those things this week is causing unnecessary complications between us. I expect to fully explain to him tonight why I was upset but shouldn’t of yelled. I’m just annoyed that a fight was over something so stupid and childish.