Skip to content
Permalink
Browse files
Rolling back changes from previous check-in.
  • Loading branch information
Jim Gomes committed Feb 29, 2012
1 parent 3fe1cae commit 65fd37656a0ddd5225bc040457943b30343f7e0a
Showing 1 changed file with 6 additions and 19 deletions.
@@ -729,27 +729,14 @@ private void AsyncCallExceptionListener(object error)

internal void OnException(Exception error)
{
if(this.transport.IsFaultTolerant)
{
Tracer.ErrorFormat("Attempting recovery from Exception: {0}", error.Message);
while(null != (error = error.InnerException))
{
Tracer.ErrorFormat(" {0}", error.Message);
}
// Will fire an exception listener callback if there's any set.
OnAsyncException(error);

OnTransportInterrupted(this.transport);
}
else
if(!this.closing.Value && !this.closed.Value)
{
// Will fire an exception listener callback if there's any set.
OnAsyncException(error);

if(!this.closing.Value && !this.closed.Value)
{
// Perform the actual work in another thread to avoid lock contention
// and allow the caller to continue on in its error cleanup.
executor.QueueUserWorkItem(AsyncOnExceptionHandler, error);
}
// Perform the actual work in another thread to avoid lock contention
// and allow the caller to continue on in its error cleanup.
executor.QueueUserWorkItem(AsyncOnExceptionHandler, error);
}
}

0 comments on commit 65fd376

Please sign in to comment.