diff options
author | aunsane <aunsane@gmail.com> | 2017-03-02 22:45:54 +0300 |
---|---|---|
committer | aunsane <aunsane@gmail.com> | 2017-03-02 22:45:54 +0300 |
commit | 403de4add1193c54e6b4387485fd8eab0c3c00bb (patch) | |
tree | ba70989f7baa52c6858b26c82717164bac62795c /protocols/Tox/src/tox_transfer.cpp | |
parent | 47873187548840ecfe712bd227a2c792277d5f21 (diff) |
Tox: more logs to #720
Diffstat (limited to 'protocols/Tox/src/tox_transfer.cpp')
-rw-r--r-- | protocols/Tox/src/tox_transfer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/Tox/src/tox_transfer.cpp b/protocols/Tox/src/tox_transfer.cpp index b66ad34d13..a85dcccc2e 100644 --- a/protocols/Tox/src/tox_transfer.cpp +++ b/protocols/Tox/src/tox_transfer.cpp @@ -255,9 +255,10 @@ void CToxProto::OnFileSendData(Tox*, uint32_t friendNumber, uint32_t fileNumber, ToxHexAddress pubKey = proto->GetContactPublicKey(friendNumber);
FileTransferParam *transfer = proto->transfers.Get(friendNumber, fileNumber);
- if (transfer == NULL)
+ if (!transfer)
{
proto->debugLogA(__FUNCTION__": failed to find transfer (%d) to %s(%d)", fileNumber, (const char*)pubKey, friendNumber);
+ tox_file_control(proto->toxThread->Tox(), friendNumber, fileNumber, TOX_FILE_CONTROL_CANCEL, NULL);
return;
}
|