The bet will continue if your substituted player is also taken off. It might not happen, but if your selected player is taken off and his replacement is replaced later in the game the bet will still run.