Skip to content
This repository has been archived by the owner on Jul 7, 2019. It is now read-only.

Commit

Permalink
Fixing #145 and #148
Browse files Browse the repository at this point in the history
  • Loading branch information
Attila Kisko authored and Attila Kisko committed Apr 24, 2016
1 parent 2a540bc commit fa0f485
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions Enyim.Caching/Memcached/PooledSocket.cs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,16 @@ protected void Dispose(bool disposing)
Action<PooledSocket> cc = this.CleanupCallback;

if (cc != null)
cc(this);
{
try
{
cc(this);
}
catch (Exception e)
{
log.Info("CleanupCallback failed during Dispose. Ignoring the exception.", e);
}
}
}
}

Expand Down Expand Up @@ -291,20 +300,20 @@ public bool ReceiveAsync(AsyncIOArgs p)

#region [ License information ]
/* ************************************************************
*
*
* Copyright (c) 2010 Attila Kiskó, enyim.com
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ************************************************************/
#endregion

0 comments on commit fa0f485

Please sign in to comment.