1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-27 02:43:28 +01: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; int pieces = 0;
while (pieces++ < MAX_PIECES_SEND) { while (true) {
if (tox_file_send_data(m, friendnum, filenum, file_senders[i].nextpiece, if (tox_file_send_data(m, friendnum, filenum, file_senders[i].nextpiece,
file_senders[i].piecelen) == -1) file_senders[i].piecelen) == -1)
break; break;

View File

@ -149,7 +149,6 @@ struct PromptBuf {
#define MAX_FILES 256 #define MAX_FILES 256
#define FILE_PIECE_SIZE 1024 #define FILE_PIECE_SIZE 1024
#define TIMEOUT_FILESENDER 300 #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 { typedef struct {
FILE *file; FILE *file;