From a4f0b65ad72682e6ca2becf3081f7e5e72a0f7af Mon Sep 17 00:00:00 2001 From: irungentoo Date: Thu, 25 Dec 2014 15:10:47 -0500 Subject: [PATCH] Fixed bug. Set friend in onion as offline when friend goes offline. --- toxcore/friend_connection.c | 1 + 1 file changed, 1 insertion(+) diff --git a/toxcore/friend_connection.c b/toxcore/friend_connection.c index 894ba61a..588f0d6a 100644 --- a/toxcore/friend_connection.c +++ b/toxcore/friend_connection.c @@ -232,6 +232,7 @@ static int handle_status(void *object, int number, uint8_t status) friend_con->status = FRIENDCONN_STATUS_CONNECTING; friend_con->crypt_connection_id = -1; friend_con->dht_ping_lastrecv = unix_time(); + onion_set_friend_online(fr_c->onion_c, friend_con->onion_friendnum, status); } unsigned int i;