1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-30 07:53:27 +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;
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

@ -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)

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;