From 7b252be29921513abbd726c51de028873f0f2f9a Mon Sep 17 00:00:00 2001 From: irungentoo Date: Fri, 24 Jan 2014 21:20:32 -0500 Subject: Set last_noreplay to zero when friend goes offline. --- toxcore/onion_client.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/toxcore/onion_client.c b/toxcore/onion_client.c index f0f8fa70..97ef3b84 100644 --- a/toxcore/onion_client.c +++ b/toxcore/onion_client.c @@ -703,9 +703,11 @@ int onion_set_friend_online(Onion_Client *onion_c, int friend_num, uint8_t is_on return -1; onion_c->friends_list[friend_num].is_online = is_online; - /* Should we reset the no_replay when the other goes offline? + + /* This should prevent some clock related issues */ if (!is_online) - onion_c->friends_list[friend_num].last_noreplay = 0; */ + onion_c->friends_list[friend_num].last_noreplay = 0; + return 0; } -- cgit v1.2.3