1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-01 10:56:44 +02:00

Make sure we check for duplicate paths in pending file transfers list

This fixes a bug where if you receive multiple file transfer
requests simultaneously and they have the same path the files
will overwrite each other
This commit is contained in:
jfreegman
2022-01-17 10:53:34 -05:00
parent ceb175e3f1
commit 05dbc626e2
3 changed files with 31 additions and 4 deletions

View File

@ -145,4 +145,7 @@ void kill_all_file_transfers_friend(Tox *m, uint32_t friendnumber);
void kill_all_file_transfers(Tox *m);
/* Return true if any pending or active file receiver has the path `path`. */
bool file_transfer_recv_path_exists(const char *path);
#endif /* FILE_TRANSFERS_H */