Skip to content

Commit

Permalink
Merge e70890d into 5281160
Browse files Browse the repository at this point in the history
  • Loading branch information
ycholette authored Aug 12, 2021
2 parents 5281160 + e70890d commit 999977f
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/JsonRpc/InputHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,16 @@ IScheduler scheduler
public void Start()
{
_disposable.Add(
Observable.FromAsync(() => ProcessInputStream(_stopProcessing.Token))
.Do(_ => { }, e => _logger.LogCritical(e, "unhandled exception"))
.Subscribe(_inputActive)
Observable.FromAsync(async () => {
try
{
await ProcessInputStream(_stopProcessing.Token).ConfigureAwait(false);
}
catch (Exception e)
{
_logger.LogCritical(e, "unhandled exception");
}
}).Subscribe(_inputActive)
);
_disposable.Add(
_inputQueue
Expand Down

0 comments on commit 999977f

Please sign in to comment.