Skip to content

Commit

Permalink
remove endless loop
Browse files Browse the repository at this point in the history
  • Loading branch information
zoff99 committed Jul 20, 2023
1 parent 9569484 commit 419b9e7
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions custom_tests/tox_local_lan_only_test_01.c
Original file line number Diff line number Diff line change
Expand Up @@ -583,16 +583,7 @@ int main(void)

usleep(120000 * 1000);
dbg(9, "[%d]:sleep done\n", 0);

while (1 == 1) {
tox_iterate(tox1, (void *)&num1);
usleep(20 * 1000);
tox_iterate(tox2, (void *)&num2);
usleep(35 * 1000);
}
dbg(9, "[%d]:FFFFFFFFFFFFFF friends offline\n", 0);


dbg(9, "[%d]:FFFFFFFFFFFFFF friends should be offline\n", 0);

// ----------- wait for friends to come online again -----------
while (1 == 1) {
Expand Down

0 comments on commit 419b9e7

Please sign in to comment.