mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
try to fix stop_and_destroy twice the same file transfer
This commit is contained in:
parent
ec829e80ad
commit
ccf78595cb
1 changed files with 8 additions and 0 deletions
|
|
@ -139,6 +139,10 @@ static LinphoneBuffer *linphone_iphone_file_transfer_send(LinphoneChatMessage *m
|
|||
}
|
||||
|
||||
- (void)uploadData:(NSData *)data forChatRoom:(LinphoneChatRoom *)chatRoom type:(NSString *)type subtype:(NSString *)subtype name:(NSString *)name key:(NSString *)key{
|
||||
if ([[LinphoneManager.instance fileTransferDelegates] containsObject:self]) {
|
||||
LOGW(@"fileTransferDelegates has already added %p", self);
|
||||
return;
|
||||
}
|
||||
[LinphoneManager.instance.fileTransferDelegates addObject:self];
|
||||
|
||||
LinphoneContent *content = linphone_core_create_content(linphone_chat_room_get_core(chatRoom));
|
||||
|
|
@ -185,6 +189,10 @@ static LinphoneBuffer *linphone_iphone_file_transfer_send(LinphoneChatMessage *m
|
|||
}
|
||||
|
||||
- (BOOL)download:(LinphoneChatMessage *)message {
|
||||
if ([[LinphoneManager.instance fileTransferDelegates] containsObject:self]) {
|
||||
LOGW(@"fileTransferDelegates has already added %p", self);
|
||||
return FALSE;
|
||||
}
|
||||
[[LinphoneManager.instance fileTransferDelegates] addObject:self];
|
||||
|
||||
_message = message;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue