diff options
Diffstat (limited to 'auto_tests/lan_discovery_test.c')
-rw-r--r-- | auto_tests/lan_discovery_test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/auto_tests/lan_discovery_test.c b/auto_tests/lan_discovery_test.c index 28a5ddf0..69bf8e31 100644 --- a/auto_tests/lan_discovery_test.c +++ b/auto_tests/lan_discovery_test.c | |||
@@ -16,15 +16,15 @@ int main(void) | |||
16 | 16 | ||
17 | printf("Waiting for LAN discovery. This loop will attempt to run until successful."); | 17 | printf("Waiting for LAN discovery. This loop will attempt to run until successful."); |
18 | 18 | ||
19 | while (tox_self_get_connection_status(tox1) == TOX_CONNECTION_NONE || | 19 | do { |
20 | tox_self_get_connection_status(tox2) == TOX_CONNECTION_NONE) { | ||
21 | printf("."); | 20 | printf("."); |
22 | fflush(stdout); | 21 | fflush(stdout); |
23 | 22 | ||
24 | tox_iterate(tox1, nullptr); | 23 | tox_iterate(tox1, nullptr); |
25 | tox_iterate(tox2, nullptr); | 24 | tox_iterate(tox2, nullptr); |
26 | c_sleep(1000); | 25 | c_sleep(1000); |
27 | } | 26 | } while (tox_self_get_connection_status(tox1) == TOX_CONNECTION_NONE || |
27 | tox_self_get_connection_status(tox2) == TOX_CONNECTION_NONE); | ||
28 | 28 | ||
29 | printf(" %d <-> %d\n", | 29 | printf(" %d <-> %d\n", |
30 | tox_self_get_connection_status(tox1), | 30 | tox_self_get_connection_status(tox1), |