mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Logging loop corrected.
This commit is contained in:
parent
06a85177e9
commit
483a6cc161
|
@ -1300,7 +1300,9 @@ void doMessenger(Messenger *m)
|
||||||
#ifdef CLIENT_ONETOONE_IP
|
#ifdef CLIENT_ONETOONE_IP
|
||||||
assoc = &cptr->assoc;
|
assoc = &cptr->assoc;
|
||||||
#else
|
#else
|
||||||
for (assoc = &cptr->assoc4; assoc != &cptr->assoc6; assoc = &cptr->assoc6)
|
uint32_t a;
|
||||||
|
|
||||||
|
for (a = 0, assoc = &cptr->assoc4; a < 2; a++, assoc = &cptr->assoc6)
|
||||||
#endif
|
#endif
|
||||||
if (ip_isset(&assoc->ip_port.ip)) {
|
if (ip_isset(&assoc->ip_port.ip)) {
|
||||||
last_pinged = lastdump - assoc->last_pinged;
|
last_pinged = lastdump - assoc->last_pinged;
|
||||||
|
@ -1359,7 +1361,9 @@ void doMessenger(Messenger *m)
|
||||||
#ifdef CLIENT_ONETOONE_IP
|
#ifdef CLIENT_ONETOONE_IP
|
||||||
assoc = &cptr->assoc;
|
assoc = &cptr->assoc;
|
||||||
#else
|
#else
|
||||||
for (assoc = &cptr->assoc4; assoc != &cptr->assoc6; assoc = &cptr->assoc6)
|
uint32_t a;
|
||||||
|
|
||||||
|
for (a = 0, assoc = &cptr->assoc4; a < 2; a++, assoc = &cptr->assoc6)
|
||||||
#endif
|
#endif
|
||||||
if (ip_isset(&assoc->ip_port.ip)) {
|
if (ip_isset(&assoc->ip_port.ip)) {
|
||||||
last_pinged = lastdump - assoc->last_pinged;
|
last_pinged = lastdump - assoc->last_pinged;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user