Skip to content

Commit

Permalink
Fix inversed return values
Browse files Browse the repository at this point in the history
This was causing pings to be sent every 1-2 seconds rather than
the expected interval.
  • Loading branch information
JFreegman committed Nov 7, 2023
1 parent 24b5472 commit d38cae2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions toxcore/group_chats.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit d38cae2

Please sign in to comment.