mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Simplify the loop.
This commit is contained in:
parent
ddb1889eb8
commit
a0f892f190
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user