mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-12 23:33:03 +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;
|
||||
|
@ -162,7 +162,7 @@ static void prompt_onKey(ToxWindow *self, Tox *m, wint_t key)
|
||||
else if (key == KEY_END) { /* END key: move cursor to end of line */
|
||||
if (prt->pos != prt->len)
|
||||
prt->pos = prt->len;
|
||||
}
|
||||
}
|
||||
|
||||
else if (key == KEY_LEFT) {
|
||||
if (prt->pos > 0)
|
||||
|
@ -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