Author: alanmc
Date: 2007-02-11 12:00:14 -0500 (Sun, 11 Feb 2007)
New Revision: 72623
Modified:
trunk/bitsharp/src/MonoTorrent.Client/Managers/FileManager.cs
Log:
Bugfix for repeated opening/closing of streams.
Modified: trunk/bitsharp/src/MonoTorrent.Client/Managers/FileManager.cs
===================================================================
--- trunk/bitsharp/src/MonoTorrent.Client/Managers/FileManager.cs
2007-02-11 16:53:05 UTC (rev 72622)
+++ trunk/bitsharp/src/MonoTorrent.Client/Managers/FileManager.cs
2007-02-11 17:00:14 UTC (rev 72623)
@@ -149,7 +149,6 @@
baseDirectory = string.Empty;
this.ioActive = true;
- this.ioThread = new Thread(new ThreadStart(RunIO));
this.threadWait = new ManualResetEvent(false);
}
#endregion
@@ -180,6 +179,7 @@
SetHandleState(true);
this.ioActive = true;
+ this.ioThread = new Thread(new ThreadStart(this.RunIO));
this.ioThread.Start();
}
@@ -437,7 +437,6 @@
continue;
piece[i].Written = true;
- Console.WriteLine("Write completed");
break;
}
ClientEngine.BufferManager.FreeBuffer(ref bufferedFileIO.Buffer);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches