mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-05-08 04:00:14 -05:00
(Fix) Race Condition Downloading Torrent
This commit is contained in:
@@ -743,7 +743,7 @@ class TorrentController extends Controller
|
||||
}
|
||||
|
||||
// Define the filename for the download
|
||||
$tmpFileName = \str_replace([' ', '/', '\\'], ['.', '-', '-'], '['.\config('torrent.source').']'.$torrent->name.'.torrent');
|
||||
$tmpFileName = \str_replace([' ', '/', '\\'], ['.', '-', '-'], '['.\config('torrent.source').']['.$user->id.']'.$torrent->name.'.torrent');
|
||||
|
||||
// The torrent file exist ?
|
||||
if (! \file_exists(\getcwd().'/files/torrents/'.$torrent->file_name)) {
|
||||
|
||||
Reference in New Issue
Block a user