diff options
Diffstat (limited to 'toxcore/onion_client.c')
-rw-r--r-- | toxcore/onion_client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/onion_client.c b/toxcore/onion_client.c index c1b2dcf7..bd40de13 100644 --- a/toxcore/onion_client.c +++ b/toxcore/onion_client.c | |||
@@ -21,7 +21,7 @@ | |||
21 | #include "util.h" | 21 | #include "util.h" |
22 | 22 | ||
23 | /* defines for the array size and | 23 | /* defines for the array size and |
24 | timeout for onion announce packets. */ | 24 | * timeout for onion announce packets. */ |
25 | #define ANNOUNCE_ARRAY_SIZE 256 | 25 | #define ANNOUNCE_ARRAY_SIZE 256 |
26 | #define ANNOUNCE_TIMEOUT 10 | 26 | #define ANNOUNCE_TIMEOUT 10 |
27 | 27 | ||
@@ -1782,7 +1782,7 @@ static int onion_isconnected(const Onion_Client *onion_c) | |||
1782 | } | 1782 | } |
1783 | 1783 | ||
1784 | /* Consider ourselves online if we are announced to half or more nodes | 1784 | /* Consider ourselves online if we are announced to half or more nodes |
1785 | we are connected to */ | 1785 | * we are connected to */ |
1786 | if (num && announced) { | 1786 | if (num && announced) { |
1787 | if ((num / 2) <= announced && (pnodes / 2) <= num) { | 1787 | if ((num / 2) <= announced && (pnodes / 2) <= num) { |
1788 | return 1; | 1788 | return 1; |