1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-12-07 06:06:34 +01:00

kill file transfer if writing fails

This commit is contained in:
Jfreegman
2013-11-29 19:26:59 -05:00
parent 57c2872b75
commit a02bbfa643
3 changed files with 10 additions and 3 deletions

View File

@@ -352,7 +352,7 @@ static void load_data(Tox *m, char *path)
}
}
static void close_file_sender(int i)
void close_file_sender(int i)
{
fclose(file_senders[i].file);
memset(&file_senders[i], 0, sizeof(FileSender));