File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -236,9 +236,9 @@ private void HandleRequest(string request)
236
236
237
237
public void Dispose ( )
238
238
{
239
+ _scheduler . Dispose ( ) ;
239
240
_outputHandler . Dispose ( ) ;
240
241
_inputThread = null ;
241
- _scheduler . Dispose ( ) ;
242
242
_input ? . Dispose ( ) ;
243
243
}
244
244
}
Original file line number Diff line number Diff line change @@ -71,12 +71,12 @@ private void ProcessOutputQueue()
71
71
catch ( OperationCanceledException ex )
72
72
{
73
73
if ( ex . CancellationToken != token )
74
- _outputIsFinished . SetException ( ex ) ;
74
+ _outputIsFinished . TrySetException ( ex ) ;
75
75
// else ignore. Exceptions: OperationCanceledException - The CancellationToken has been canceled.
76
76
}
77
77
catch ( Exception e )
78
78
{
79
- _outputIsFinished . SetException ( e ) ;
79
+ _outputIsFinished . TrySetException ( e ) ;
80
80
}
81
81
}
82
82
You can’t perform that action at this time.
0 commit comments