mirror of https://github.com/zlatinb/muwire
do not persist downloaders until they have a hashlist
parent
6a01d97a8d
commit
04ceaba514
|
@ -107,7 +107,7 @@ public class DownloadManager {
|
|||
File downloadsFile = new File(home,"downloads.json")
|
||||
downloadsFile.withPrintWriter { writer ->
|
||||
downloaders.each { downloader ->
|
||||
if (!downloader.cancelled) {
|
||||
if (!downloader.cancelled && downloader.infoHash.hashList != null) {
|
||||
def json = [:]
|
||||
json.file = Base64.encode(DataUtil.encodei18nString(downloader.file.getAbsolutePath()))
|
||||
json.length = downloader.length
|
||||
|
|
Loading…
Reference in New Issue