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:
jfreegman 2023-11-06 22:54:50 -05:00
parent 82276ef5ac
commit 1195271b7f
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63
2 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
bd6954cbbff8d2b6cc1fe5681a016ff42a0400da35c2b50d11550443c8dce6af /usr/local/bin/tox-bootstrapd
61c4cff326cf3a32fa5edad1c899c9eb586e4ebfcb8d11c9cf55d120fc7ab467 /usr/local/bin/tox-bootstrapd

View File

@ -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;
}
/**