It depends on each individual company. Some will pay the in-game bet as soon as the result is determined, that is, the money will be in your balance even before the match ends. This gives you the opportunity to place another live bet on the same match. However, other apps simply wait for the match to end to close all bets. It is recommended to contact support to find out the in-game betting rules.