Skip to content

Commit

Permalink
[BufferManager] Recache this buffer after it's finished with.
Browse files Browse the repository at this point in the history
  • Loading branch information
alanmcgovern committed Mar 4, 2011
1 parent adb3eef commit 22adc71
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/MonoTorrent/MonoTorrent.Client/PeerIO.cs
Expand Up @@ -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);
}
Expand Down

0 comments on commit 22adc71

Please sign in to comment.