remove duplicated fileTransferDelegates

This commit is contained in:
Danmei Chen 2021-03-11 18:01:28 +01:00
parent 7d00b0fcd1
commit 2d0af97d23

View file

@ -1365,6 +1365,8 @@ void popup_link_account_cb(LinphoneAccountCreator *creator, LinphoneAccountCreat
if (theLinphoneCore != nil) { // just in case application terminate before linphone core initialization
// rare case, remove duplicated fileTransferDelegates to avoid crash
[_fileTransferDelegates setArray:[[NSSet setWithArray:_fileTransferDelegates] allObjects]];
for (FileTransferDelegate *ftd in _fileTransferDelegates) {
[ftd stopAndDestroy];
}