From 1195271b7fcd6b3e39963d5b453094c47379782b Mon Sep 17 00:00:00 2001 From: jfreegman Date: Mon, 6 Nov 2023 22:54:50 -0500 Subject: [PATCH] Fix inversed return values This was causing pings to be sent every 1-2 seconds rather than the expected interval. --- other/bootstrap_daemon/docker/tox-bootstrapd.sha256 | 2 +- toxcore/group_chats.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/other/bootstrap_daemon/docker/tox-bootstrapd.sha256 b/other/bootstrap_daemon/docker/tox-bootstrapd.sha256 index 1ac47b2d..8ceccafe 100644 --- a/other/bootstrap_daemon/docker/tox-bootstrapd.sha256 +++ b/other/bootstrap_daemon/docker/tox-bootstrapd.sha256 @@ -1 +1 @@ -bd6954cbbff8d2b6cc1fe5681a016ff42a0400da35c2b50d11550443c8dce6af /usr/local/bin/tox-bootstrapd +61c4cff326cf3a32fa5edad1c899c9eb586e4ebfcb8d11c9cf55d120fc7ab467 /usr/local/bin/tox-bootstrapd diff --git a/toxcore/group_chats.c b/toxcore/group_chats.c index ac10e8b1..3fc41302 100644 --- a/toxcore/group_chats.c +++ b/toxcore/group_chats.c @@ -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; } /**