Skip to content

Commit

Permalink
Call into the MainThread less frequently as it's not necessary
Browse files Browse the repository at this point in the history
svn path=/trunk/bitsharp/; revision=123006
  • Loading branch information
alanmcgovern committed Jan 12, 2009
1 parent 9b54fe6 commit 6bda0ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/MonoTorrent/MonoTorrent.Client/Managers/DiskManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ internal DiskManager(ClientEngine engine, PieceWriter writer)
this.writeLimiter = new RateLimiter();
this.writer = writer;

IOLoop.QueueTimeout(TimeSpan.FromMilliseconds(5), delegate {
IOLoop.QueueTimeout(TimeSpan.FromMilliseconds(100), delegate {
if (disposed)
return false;

Expand Down
2 changes: 1 addition & 1 deletion src/MonoTorrent/MonoTorrent.Client/NetworkIO.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public AsyncIO(IConnection connection, byte[] buffer, int offset, int total, Asy

static NetworkIO()
{
ClientEngine.MainLoop.QueueTimeout(TimeSpan.FromMilliseconds(50), delegate {
ClientEngine.MainLoop.QueueTimeout(TimeSpan.FromMilliseconds(100), delegate {
lock (sendQueue)
{
for (int i = 0; i < sendQueue.Count;)
Expand Down

0 comments on commit 6bda0ed

Please sign in to comment.