Browse Source

Fix I/O error after fetching magnet metadata

It is caused by an extra path seperator, so removing it fixes it.
Fixup 9612a75faa.
adaptive-webui-19844
Chocobo1 6 years ago
parent
commit
63991cb58e
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 2
      src/base/bittorrent/session.cpp

2
src/base/bittorrent/session.cpp

@ -2300,7 +2300,7 @@ bool Session::loadMetadata(const MagnetUri &magnetUri) @@ -2300,7 +2300,7 @@ bool Session::loadMetadata(const MagnetUri &magnetUri)
p.max_connections = maxConnectionsPerTorrent();
p.max_uploads = maxUploadsPerTorrent();
QString savePath = QString("%1/%2").arg(Utils::Fs::tempPath(), hash);
const QString savePath = Utils::Fs::tempPath() + static_cast<QString>(hash);
p.save_path = Utils::Fs::toNativePath(savePath).toStdString();
// Forced start

Loading…
Cancel
Save