Happened to me recently. I think it depends on the type of game.
A Match game which is Rated would have kept you in the lobby while your opponent had 2mins to reconnect. If they don't, you win Match.
But if it's a Practice match, it just ends.
If it's a rated strokes game, it seems that if your opponent bails after first hole, you have to continue to play the full 9/198 hole to get a win.