1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-07-03 17:17:46 +02:00

rm unnecessary file transfer limit

This commit is contained in:
Jfreegman 2014-02-20 07:47:19 -05:00
parent eb2d6afa00
commit 69c467fa5f
3 changed files with 2 additions and 3 deletions

View File

@ -407,7 +407,7 @@ static void do_file_senders(Tox *m)
int pieces = 0;
while (pieces++ < MAX_PIECES_SEND) {
while (true) {
if (tox_file_send_data(m, friendnum, filenum, file_senders[i].nextpiece,
file_senders[i].piecelen) == -1)
break;

View File

@ -149,7 +149,6 @@ struct PromptBuf {
#define MAX_FILES 256
#define FILE_PIECE_SIZE 1024
#define TIMEOUT_FILESENDER 300
#define MAX_PIECES_SEND 100 /* Max number of pieces to send per file per call to do_file_senders() */
typedef struct {
FILE *file;