mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fix inversed return values
This was causing pings to be sent every 1-2 seconds rather than the expected interval.
This commit is contained in:
parent
82276ef5ac
commit
1195271b7f
|
@ -1 +1 @@
|
|||
bd6954cbbff8d2b6cc1fe5681a016ff42a0400da35c2b50d11550443c8dce6af /usr/local/bin/tox-bootstrapd
|
||||
61c4cff326cf3a32fa5edad1c899c9eb586e4ebfcb8d11c9cf55d120fc7ab467 /usr/local/bin/tox-bootstrapd
|
||||
|
|
|
@ -6961,12 +6961,12 @@ static bool ping_peer(const GC_Chat *chat, const GC_Connection *gconn)
|
|||
|
||||
if (!send_lossy_group_packet(chat, gconn, data, packed_len, GP_PING)) {
|
||||
free(data);
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
free(data);
|
||||
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user