[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/ioslaves/kio_magnet
From: Christian Weilbach <christian () whiletaker ! homeip ! net>
Date: 2010-11-12 11:41:06
Message-ID: 20101112114106.C55E0AC89E () svn ! kde ! org
[Download RAW message or body]
SVN commit 1196003 by weilbach:
Fix access during already started but still running download. Deactivate streaming on destruction.
M +4 -0 ktorrentdbusinterface.cpp
--- trunk/playground/ioslaves/kio_magnet/ktorrentdbusinterface.cpp #1196002:1196003
@@ -66,6 +66,7 @@
MagnetSettings::setRunningTorrents(rt);
}
MagnetSettings::self()->writeConfig();
+ m_torrentInt->createTorrentFileStream(m_file,false);
delete m_process;
delete m_torrentInt;
// TODO check memory managment
@@ -197,6 +198,9 @@
m_slave->downloaded();
} else { // still downloading
m_torrentInt->setDoNotDownload(m_file, false);
+ m_slave->setPath(m_torrentInt->filePathOnDisk(m_file));
+ m_slave->setSize(m_torrentInt->fileSize(m_file));
+ m_torrentInt->createTorrentFileStream(m_file,true);
}
m_slave->added();
} else {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic