File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,10 +59,14 @@ export abstract class ComplexProcessor<TData> extends Subject<TData> implements
5959 this . lastInput = data ;
6060
6161 if ( ! this . shouldProcess ( force ) ) {
62- return data ;
62+ return this . lastOutput ;
6363 }
64+
65+ this . _processing = true ;
6466
6567 const processedData = this . processor ( data ) ;
68+
69+ this . _processing = false ;
6670
6771 return this . next ( processedData ) ;
6872 }
Original file line number Diff line number Diff line change @@ -113,14 +113,10 @@ export class QueueProcessor<TData> extends ComplexProcessor<TData> {
113113 this . lastInput = data ;
114114 let processedData = data ;
115115
116- this . _processing = true ;
117-
118116 this . processorTuples . forEach ( processorTuple => {
119117 processedData = this . runProcessor ( processedData , processorTuple [ 0 ] ) ;
120118 } ) ;
121119
122- this . _processing = false ;
123-
124120 return processedData ;
125121 }
126122
You can’t perform that action at this time.
0 commit comments