fixing path issue with starting torrent
This commit is contained in:
1 parent
128ec774bd
commit
a7881a14c7
1 file changed
+1
-1
@@ -522,7 +522,7 @@ func main() {
|
||||
singleTorrent.CancelPieces(1, NumPieces) //cancel all of the pieces to use file priority
|
||||
for _, file := range singleTorrent.Files() {
|
||||
for _, sentFile := range oldTorrentInfo.TorrentFilePriority {
|
||||
if file.Path() == sentFile.TorrentFilePath {
|
||||
if file.DisplayPath() == sentFile.TorrentFilePath {
|
||||
switch sentFile.TorrentFilePriority {
|
||||
case "High":
|
||||
file.SetPriority(torrent.PiecePriorityHigh)
|
||||
|
||||
Reference in new issue
Block a user