Hi!
My dog Tanner did that. We just had to wait it out. When I came home from dance lessons he'd greet me and pee. He still does it, when he is very excited! I have to greet him outside, where he can pee all he wants. I hope this helps a little!