Mercurial > pub > ImplabNet
diff Implab/AbstractPromise.cs @ 197:86187b01c4e0
fixed: the error handler should not handle handlers errors
author | cin |
---|---|
date | Thu, 01 Sep 2016 10:43:31 +0300 |
parents | 75103928da09 |
children | cbe10ac0731e |
line wrap: on
line diff
--- a/Implab/AbstractPromise.cs Mon Aug 29 23:15:51 2016 +0300 +++ b/Implab/AbstractPromise.cs Thu Sep 01 10:43:31 2016 +0300 @@ -27,10 +27,8 @@ if ((m_mask & PromiseEventType.Success) != 0 && m_handler != null) { try { m_handler(); - } catch (Exception err) { - // avoid calling handler twice in case of error - if (m_error != null) - SignalError(err); + // Analysis disable once EmptyGeneralCatchClause + } catch { } } } @@ -55,8 +53,8 @@ if (m_cancel != null) { try { m_cancel(reason); - } catch (Exception err) { - SignalError(err); + // Analysis disable once EmptyGeneralCatchClause + } catch { } } else if ( (m_mask & PromiseEventType.Cancelled) != 0 && m_handler != null) { try {