diff options
author | irungentoo <irungentoo@gmail.com> | 2014-12-25 15:10:47 -0500 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-12-25 15:10:47 -0500 |
commit | a4f0b65ad72682e6ca2becf3081f7e5e72a0f7af (patch) | |
tree | 9607854f21a9408a5e87500902f4fc10f2d53da1 /toxcore/friend_connection.c | |
parent | 895f269285d15c54b47646a42f77603a7f83bfd9 (diff) |
Fixed bug.
Set friend in onion as offline when friend goes offline.
Diffstat (limited to 'toxcore/friend_connection.c')
-rw-r--r-- | toxcore/friend_connection.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) | |||
232 | friend_con->status = FRIENDCONN_STATUS_CONNECTING; | 232 | friend_con->status = FRIENDCONN_STATUS_CONNECTING; |
233 | friend_con->crypt_connection_id = -1; | 233 | friend_con->crypt_connection_id = -1; |
234 | friend_con->dht_ping_lastrecv = unix_time(); | 234 | friend_con->dht_ping_lastrecv = unix_time(); |
235 | onion_set_friend_online(fr_c->onion_c, friend_con->onion_friendnum, status); | ||
235 | } | 236 | } |
236 | 237 | ||
237 | unsigned int i; | 238 | unsigned int i; |