From d9416299f4c9a29c6acb2a3f66fa86873ed52cc6 Mon Sep 17 00:00:00 2001 From: thalieht Date: Sun, 23 Dec 2018 19:23:34 +0200 Subject: [PATCH] Fix regression on resuming torrents without metadata --- src/base/bittorrent/torrenthandle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/bittorrent/torrenthandle.cpp b/src/base/bittorrent/torrenthandle.cpp index 10d790f01..069ad11ab 100644 --- a/src/base/bittorrent/torrenthandle.cpp +++ b/src/base/bittorrent/torrenthandle.cpp @@ -224,7 +224,7 @@ TorrentHandle::TorrentHandle(Session *session, const libtorrent::torrent_handle if (params.paused) { m_startupState = Started; } - else if (!params.restored) { + else if (!params.restored || !hasMetadata()) { // Resume torrent because it was added in "resumed" state // but it's actually paused during initialization m_startupState = Starting; -- 2.11.4.GIT