Skip to content

Commit 1195271

Browse files
committed
Fix inversed return values
This was causing pings to be sent every 1-2 seconds rather than the expected interval.
1 parent 82276ef commit 1195271

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
bd6954cbbff8d2b6cc1fe5681a016ff42a0400da35c2b50d11550443c8dce6af /usr/local/bin/tox-bootstrapd
1+
61c4cff326cf3a32fa5edad1c899c9eb586e4ebfcb8d11c9cf55d120fc7ab467 /usr/local/bin/tox-bootstrapd

toxcore/group_chats.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6961,12 +6961,12 @@ static bool ping_peer(const GC_Chat *chat, const GC_Connection *gconn)
69616961

69626962
if (!send_lossy_group_packet(chat, gconn, data, packed_len, GP_PING)) {
69636963
free(data);
6964-
return true;
6964+
return false;
69656965
}
69666966

69676967
free(data);
69686968

6969-
return false;
6969+
return true;
69706970
}
69716971

69726972
/**

0 commit comments

Comments
 (0)