Set last_noreplay to zero when friend goes offline.

This commit is contained in:
irungentoo 2014-01-24 21:20:32 -05:00
parent 51d8c41390
commit 7b252be299

View File

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