Skip to content
This repository has been archived by the owner on Aug 25, 2021. It is now read-only.

Commit

Permalink
Unpin MemoryHandles before Flushing to app (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmds authored Jul 3, 2018
1 parent 9f47d9a commit c44b056
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -551,16 +551,16 @@ private unsafe void AioReceive(List<TSocket> readableSockets)
readableSocketCount = 0;
}
}
for (int i = 0; i < readableSockets.Count; i++)
{
readableSockets[i].OnReceiveFromSocket(receiveResults[i]);
}
readableSockets.Clear();
receiveMemoryHandles = MemoryHandles;
for (int i = 0; i < receiveMemoryHandleCount; i++)
{
receiveMemoryHandles[i].Dispose();
}
for (int i = 0; i < readableSockets.Count; i++)
{
readableSockets[i].OnReceiveFromSocket(receiveResults[i]);
}
readableSockets.Clear();
}

private void StopSockets()
Expand Down

0 comments on commit c44b056

Please sign in to comment.