Trouble with sex

So my boyfriend and I haven’t been able to have sex for about a week now because he keeps having to pee. He can be hard and then have to pee and we have to restart. Anyone ever gone through this or have any advice? We’ve been able to have sex multiple times before without this ever happening and it really embarrasses him and I don’t know what to do.