3 Nov 2007 00:09
reload problem
HyDr0g3n - <hydr0g3n <at> hotmail.com>
2007-11-02 23:09:28 GMT
2007-11-02 23:09:28 GMT
Since recent libtorrent svn, my reloadTorrent code is crashing and I don't understand why. Here is the code :
// Remove torrent
s->remove_torrent(h.get_torrent_handle());
// Add torrent again to session
unsigned int timeout = 0;
while(h.is_valid() && timeout < 6) {
qDebug("Waiting for the torrent to be removed...");
SleeperThread::msleep(1000);
++timeout;
}
QTorrentHandle new_h;
if(full_alloc) {
new_h = s->add_torrent(t, saveDir, resumeData, storage_mode_allocate);
qDebug("Using full allocation mode");
} else {
new_h = s->add_torrent(t, saveDir, resumeData, storage_mode_sparse);
qDebug("Using sparse mode");
}
Here is the bug I get :
http://pastebin.ca/759204
Is this a bug in libtorrent or is my code wrong?
Regards,
Chris.
_________________________________________________________________
Retrouvez Windows Live Messenger sur votre mobile !
(Continue reading)
RSS Feed