Skip to content
Snippets Groups Projects
Commit a0f892f1 authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

Simplify the loop.

parent ddb1889e
No related branches found
No related tags found
No related merge requests found
......@@ -2151,10 +2151,11 @@ run_main_loop_once(void)
static int
run_main_loop_until_done(void)
{
int loop_result = 1;
while ((loop_result = run_main_loop_once()) == 1)
continue;
return loop_result;
int loop_result = 1;
do {
loop_result = run_main_loop_once();
} while (loop_result == 1);
return loop_result;
}
#ifndef _WIN32 /* Only called when we're willing to use signals */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment