Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[BufferManager] Recache this buffer after it's finished with.

  • Loading branch information...
commit 22adc71a6cd7e637675e8456342cce7d12587717 1 parent adb3eef
@alanmcgovern alanmcgovern authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  src/MonoTorrent/MonoTorrent.Client/PeerIO.cs
View
1  src/MonoTorrent/MonoTorrent.Client/PeerIO.cs
@@ -145,6 +145,7 @@ static void MessageBodyReceived (bool successful, int transferred, object state)
data.Decryptor.Decrypt (data.Buffer, 4, transferred);
var message = PeerMessage.DecodeMessage (data.Buffer, 0, transferred + 4, data.Manager);
+ ClientEngine.BufferManager.FreeBuffer (data.Buffer);
data.Callback (true, message, data.State);
receiveCache.Enqueue (data);
}
Please sign in to comment.
Something went wrong with that request. Please try again.