summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_contacts.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-05-07 15:52:28 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-05-07 15:52:28 +0000
commitfb2739625f4424488433e4edc53082e452e610fa (patch)
treea76d1be3328c018150206d241cfda30621b61a14 /protocols/Tox/src/tox_contacts.cpp
parent7bea1db1766147e4294f92c55dc94f247f7ff0e1 (diff)
Tox: some refactoring
git-svn-id: http://svn.miranda-ng.org/main/trunk@13474 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_contacts.cpp')
-rw-r--r--protocols/Tox/src/tox_contacts.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/protocols/Tox/src/tox_contacts.cpp b/protocols/Tox/src/tox_contacts.cpp
index 8f6484f39e..2c410f4cad 100644
--- a/protocols/Tox/src/tox_contacts.cpp
+++ b/protocols/Tox/src/tox_contacts.cpp
@@ -348,7 +348,6 @@ void CToxProto::OnConnectionStatusChanged(Tox*, uint32_t friendNumber, TOX_CONNE
if (transfer->friendNumber == friendNumber && transfer->GetDirection() == 1)
{
proto->debugLogA(__FUNCTION__": sending ask to resume the transfer of file (%d)", transfer->fileNumber);
- transfer->status = STARTED;
TOX_ERR_FILE_CONTROL error;
if (!tox_file_control(proto->tox, transfer->friendNumber, transfer->fileNumber, TOX_FILE_CONTROL_RESUME, &error))
{
@@ -402,12 +401,12 @@ void CToxProto::OnConnectionStatusChanged(Tox*, uint32_t friendNumber, TOX_CONNE
proto->SetContactStatus(hContact, ID_STATUS_OFFLINE);
proto->setDword(hContact, "LastEventDateTS", time(NULL));
- for (size_t i = 0; i < proto->transfers.Count(); i++)
+ /*for (size_t i = 0; i < proto->transfers.Count(); i++)
{
FileTransferParam *transfer = proto->transfers.GetAt(i);
if (transfer->friendNumber == friendNumber)
transfer->status = BROKEN;
- }
+ }*/
}
}
}