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:
parent
4453bbe266
commit
071310b82a
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user