mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed issue.
This commit is contained in:
parent
71b48516e8
commit
c44f95eb78
|
@ -721,9 +721,6 @@ void m_callback_connectionstatus(Messenger *m, void (*function)(Messenger *m, in
|
|||
static void break_files(Messenger *m, int friendnumber);
|
||||
static void check_friend_connectionstatus(Messenger *m, int friendnumber, uint8_t status)
|
||||
{
|
||||
if (!m->friend_connectionstatuschange)
|
||||
return;
|
||||
|
||||
if (status == NOFRIEND)
|
||||
return;
|
||||
|
||||
|
@ -740,7 +737,8 @@ static void check_friend_connectionstatus(Messenger *m, int friendnumber, uint8_
|
|||
add_online_friend(m, friendnumber);
|
||||
}
|
||||
|
||||
m->friend_connectionstatuschange(m, friendnumber, is_online, m->friend_connectionstatuschange_userdata);
|
||||
if (m->friend_connectionstatuschange)
|
||||
m->friend_connectionstatuschange(m, friendnumber, is_online, m->friend_connectionstatuschange_userdata);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user