It can be risk of losing your bankroll before doubling, or just the risk of losing your bankroll ever, depending on context. If your RoR is 1%, that implies a 99% chance that you do not reach ruin. That means, under the former definition, you have a 99% chance of doubling your bankroll (if you play long enough). Under the latter definition, it means there is a 99% chance that you do not reach ruin ever, and your win will approach infinity. Obviously, once your bankroll has doubled a few times, if you don't change your strategy at all, your odds of then losing everything are infinitesimally small. Practically speaking, if your risk of ruin before doubling is reasonable, your overall risk of ruin (without the doubling constraint) will also be reasonable, since it is not likely to double your bankroll and then lose everything.