mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-20 18:22:09 +01:00
Simplify the loop.
This commit is contained in:
parent
ddb1889eb8
commit
a0f892f190
@ -2151,10 +2151,11 @@ run_main_loop_once(void)
|
|||||||
static int
|
static int
|
||||||
run_main_loop_until_done(void)
|
run_main_loop_until_done(void)
|
||||||
{
|
{
|
||||||
int loop_result = 1;
|
int loop_result = 1;
|
||||||
while ((loop_result = run_main_loop_once()) == 1)
|
do {
|
||||||
continue;
|
loop_result = run_main_loop_once();
|
||||||
return loop_result;
|
} while (loop_result == 1);
|
||||||
|
return loop_result;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef _WIN32 /* Only called when we're willing to use signals */
|
#ifndef _WIN32 /* Only called when we're willing to use signals */
|
||||||
|
Loading…
Reference in New Issue
Block a user