comparison Implab/ActionChainTaskBase.cs @ 198:b305c678923a

fixed error handling for chained actions
author koff
date Mon, 10 Oct 2016 03:14:00 +0300
parents 40d7fed4a09e
children
comparison
equal deleted inserted replaced
197:86187b01c4e0 198:b305c678923a
48 try { 48 try {
49 var p = m_error(error); 49 var p = m_error(error);
50 p.On(SetResult, SetErrorInternal, SetCancelledInternal); 50 p.On(SetResult, SetErrorInternal, SetCancelledInternal);
51 CancellationRequested(p.Cancel); 51 CancellationRequested(p.Cancel);
52 } catch (Exception err) { 52 } catch (Exception err) {
53 SetErrorInternal(error); 53 SetErrorInternal(err);
54 } 54 }
55 } else { 55 } else {
56 SetErrorInternal(error); 56 SetErrorInternal(error);
57 } 57 }
58 } 58 }