Simplify the loop.

This commit is contained in:
Nick Mathewson 2015-03-14 14:30:08 -04:00
parent ddb1889eb8
commit a0f892f190

View File

@ -2152,8 +2152,9 @@ static int
run_main_loop_until_done(void)
{
int loop_result = 1;
while ((loop_result = run_main_loop_once()) == 1)
continue;
do {
loop_result = run_main_loop_once();
} while (loop_result == 1);
return loop_result;
}