diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-02-03 21:39:16 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-02-03 21:39:16 +0000 |
commit | 2d0cbc078494bbf8f70e68fe629710bbaa30b2e8 (patch) | |
tree | 06ac10b032a5c98fdbe2a7bec871ff1bffa4b06d /protocols/Tox/src/tox_account.cpp | |
parent | ac03d5141169f1522e6b2afd8e56f0c39d4320b7 (diff) |
Tox: rewrited file sending
git-svn-id: http://svn.miranda-ng.org/main/trunk@11998 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_account.cpp')
-rw-r--r-- | protocols/Tox/src/tox_account.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/Tox/src/tox_account.cpp b/protocols/Tox/src/tox_account.cpp index 49eb5fa146..7a4d4515ab 100644 --- a/protocols/Tox/src/tox_account.cpp +++ b/protocols/Tox/src/tox_account.cpp @@ -121,7 +121,8 @@ void CToxProto::UninitToxCore() {
mir_cslock(transfer->fileLock);
- transfer->Cancel(tox);
+ transfer->status = CANCELED;
+ tox_file_send_control(tox, transfer->friendNumber, transfer->GetDirection(), transfer->fileNumber, TOX_FILECONTROL_KILL, NULL, 0);
ProtoBroadcastAck(transfer->pfts.hContact, ACKTYPE_FILE, ACKRESULT_DENIED, (HANDLE)transfer, 0);
}
transfers->Remove(transfer);
|