1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Try to improve file transfer speed

May help with #376 since we're not recursing through processEvents anymore
This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2014-11-02 14:03:39 +01:00
parent 4453bbe266
commit 071310b82a
No known key found for this signature in database
GPG Key ID: 7E086DD661263264
2 changed files with 2 additions and 2 deletions

View File

@ -1526,7 +1526,7 @@ void Core::sendAllFileData(Core *core, ToxFile* file)
return; return;
} }
emit core->fileTransferInfo(file->friendId, file->fileNum, file->filesize, file->bytesSent, ToxFile::SENDING); emit core->fileTransferInfo(file->friendId, file->fileNum, file->filesize, file->bytesSent, ToxFile::SENDING);
qApp->processEvents(); // qApp->processEvents();
long long chunkSize = tox_file_data_size(core->tox, file->friendId); long long chunkSize = tox_file_data_size(core->tox, file->friendId);
if (chunkSize == -1) if (chunkSize == -1)
{ {

View File

@ -3,7 +3,7 @@
#define TOXAV_MAX_CALLS 16 #define TOXAV_MAX_CALLS 16
#define GROUPCHAT_MAX_SIZE 32 #define GROUPCHAT_MAX_SIZE 32
#define TOX_FILE_INTERVAL 0 #define TOX_FILE_INTERVAL 1
#define TOXAV_RINGING_TIME 45 #define TOXAV_RINGING_TIME 45
// TODO: Put that in the settings // TODO: Put that in the settings