This repository was archived by the owner on Jul 7, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed
Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -155,7 +155,16 @@ protected void Dispose(bool disposing)
155155 Action < PooledSocket > cc = this . CleanupCallback ;
156156
157157 if ( cc != null )
158- cc ( this ) ;
158+ {
159+ try
160+ {
161+ cc ( this ) ;
162+ }
163+ catch ( Exception e )
164+ {
165+ log . Info ( "CleanupCallback failed during Dispose. Ignoring the exception." , e ) ;
166+ }
167+ }
159168 }
160169 }
161170
@@ -291,20 +300,20 @@ public bool ReceiveAsync(AsyncIOArgs p)
291300
292301#region [ License information ]
293302/* ************************************************************
294- *
303+ *
295304 * Copyright (c) 2010 Attila Kiskó, enyim.com
296- *
305+ *
297306 * Licensed under the Apache License, Version 2.0 (the "License");
298307 * you may not use this file except in compliance with the License.
299308 * You may obtain a copy of the License at
300- *
309+ *
301310 * http://www.apache.org/licenses/LICENSE-2.0
302- *
311+ *
303312 * Unless required by applicable law or agreed to in writing, software
304313 * distributed under the License is distributed on an "AS IS" BASIS,
305314 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
306315 * See the License for the specific language governing permissions and
307316 * limitations under the License.
308- *
317+ *
309318 * ************************************************************/
310319#endregion
You can’t perform that action at this time.
0 commit comments