mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed a mistake
This commit is contained in:
parent
ee95bf08af
commit
e427197580
|
@ -496,8 +496,8 @@ static void check_friend_connectionstatus(int friendnumber, uint8_t status)
|
||||||
return;
|
return;
|
||||||
if (status == NOFRIEND)
|
if (status == NOFRIEND)
|
||||||
return;
|
return;
|
||||||
const uint8_t is_connected = friendlist[friendnumber].status == FRIEND_ONLINE;
|
const uint8_t was_connected = friendlist[friendnumber].status == FRIEND_ONLINE;
|
||||||
const uint8_t was_connected = status == FRIEND_ONLINE;
|
const uint8_t is_connected = status == FRIEND_ONLINE;
|
||||||
if (is_connected != was_connected)
|
if (is_connected != was_connected)
|
||||||
friend_connectionstatuschange(friendnumber, is_connected);
|
friend_connectionstatuschange(friendnumber, is_connected);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user