Author: alanmc
Date: 2008-02-03 13:21:51 -0500 (Sun, 03 Feb 2008)
New Revision: 94707
Modified:
trunk/bitsharp/src/MonoTorrent/MonoTorrent.Client/Managers/FileManager.cs
Log:
FileManager should check to make sure that fast resume support is allowed on
the torrent manager.
Modified:
trunk/bitsharp/src/MonoTorrent/MonoTorrent.Client/Managers/FileManager.cs
===================================================================
--- trunk/bitsharp/src/MonoTorrent/MonoTorrent.Client/Managers/FileManager.cs
2008-02-03 18:20:44 UTC (rev 94706)
+++ trunk/bitsharp/src/MonoTorrent/MonoTorrent.Client/Managers/FileManager.cs
2008-02-03 18:21:51 UTC (rev 94707)
@@ -256,7 +256,7 @@
// FIXME: #warning Store all the fast resume in a 'data' file
in a known location instead?
// If we don't know where the .torrent is on disk, then don't
save
// fast resume data.
- if (string.IsNullOrEmpty(manager.Torrent.TorrentPath))
+ if (!manager.Settings.FastResumeEnabled ||
string.IsNullOrEmpty(manager.Torrent.TorrentPath))
return false;
string fastResumePath = manager.Torrent.TorrentPath +
".fresume";
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches