Skip to content

Commit

Permalink
groom code
Browse files Browse the repository at this point in the history
  • Loading branch information
gaochundong committed Sep 7, 2017
1 parent 55787c5 commit efcb578
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions Cowboy/Cowboy.Sockets/Tcp/Server/EAP/Pooling/SaeaPool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@ public SaeaPool(int batchCount, int maxFreeCount, Func<SaeaAwaitable> saeaCreato

public override bool Return(SaeaAwaitable saea)
{
if (_saeaCleaner != null)
{
_saeaCleaner(saea);
}
_saeaCleaner(saea);

if (!base.Return(saea))
{
Expand Down
5 changes: 1 addition & 4 deletions Cowboy/Cowboy.Sockets/Tcp/Server/EAP/Pooling/SessionPool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@ public SessionPool(int batchCount, int maxFreeCount, Func<TcpSocketSaeaSession>

public override bool Return(TcpSocketSaeaSession session)
{
if (_sessionCleaner != null)
{
_sessionCleaner(session);
}
_sessionCleaner(session);

if (!base.Return(session))
{
Expand Down

0 comments on commit efcb578

Please sign in to comment.