mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-27 00:23:27 +01:00
rm unnecessary file transfer limit
This commit is contained in:
parent
eb2d6afa00
commit
69c467fa5f
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user