Added UB comment r/t deleting a friend w/ active call

This commit is contained in:
Gregory Mullen (grayhatter) 2016-09-18 18:48:53 -07:00
parent b6db1dba9a
commit d497bfe533
No known key found for this signature in database
GPG Key ID: 5A0E3F964ADE299B

View File

@ -413,6 +413,11 @@ int m_delfriend(Messenger *m, int32_t friendnumber)
}
if (m->friend_connectionstatuschange_internal) {
// This is a direct callback to tell ToxAV that the friend has disconnected.
// The userdata in this callback is set to NULL, which will be passed back
// to the user if there is an active call. This behavior is expected, as the
// plan as of this commit is to update toxcore to ONLY send callbacks with
// tox_iterate().
m->friend_connectionstatuschange_internal(m, friendnumber, 0, m->friend_connectionstatuschange_internal_userdata, NULL);
}