Author: alanmc
Date: 2008-02-03 13:20:44 -0500 (Sun, 03 Feb 2008)
New Revision: 94706
Modified:
trunk/bitsharp/src/MonoTorrent/MonoTorrent.Client/Managers/TorrentManager.cs
Log:
TorrentManager should check to see if TorrentPath is null or empty before
saving fast resume...
Modified:
trunk/bitsharp/src/MonoTorrent/MonoTorrent.Client/Managers/TorrentManager.cs
===================================================================
---
trunk/bitsharp/src/MonoTorrent/MonoTorrent.Client/Managers/TorrentManager.cs
2008-02-03 18:07:38 UTC (rev 94705)
+++
trunk/bitsharp/src/MonoTorrent/MonoTorrent.Client/Managers/TorrentManager.cs
2008-02-03 18:20:44 UTC (rev 94706)
@@ -891,7 +891,7 @@
private void SaveFastResume()
{
// Do not create fast-resume data if we do not support it for this
TorrentManager object
- if (!Settings.FastResumeEnabled)
+ if (!Settings.FastResumeEnabled ||
string.IsNullOrEmpty(this.torrent.TorrentPath))
return;
XmlSerializer fastResume = new XmlSerializer(typeof(int[]));
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches