Skip to content

Commit 9973ba0

Browse files
committed
iteration 2
1 parent ffae317 commit 9973ba0

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

src/Interactive/Features/Interactive/Core/InteractiveHost.RemoteService.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,11 @@ private async void ProcessExitedHandler(object _, EventArgs __)
7474
_processExitHandlerStatus = ProcessExitHandlerStatus.Handled;
7575
// Should set _processExitHandlerStatus before calling OnProcessExited to avoid deadlocks.
7676
// Calling the host should be within the lock to prevent its disposing during the execution.
77-
await _host.OnProcessExited(Process).ConfigureAwait(false);
77+
_host.ReportProcessExited(Process);
7878
}
7979
}
80+
81+
await _host.TryGetOrCreateRemoteServiceAsync(processPendingOutput: true).ConfigureAwait(false);
8082
}
8183
catch (Exception e) when (FatalError.Report(e))
8284
{

src/Interactive/Features/Interactive/Core/InteractiveHost.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -300,12 +300,6 @@ private LazyRemoteService CreateRemoteService(InteractiveHostOptions options, bo
300300
return new LazyRemoteService(this, options, Interlocked.Increment(ref _remoteServiceInstanceId), skipInitialization);
301301
}
302302

303-
private Task OnProcessExited(Process process)
304-
{
305-
ReportProcessExited(process);
306-
return TryGetOrCreateRemoteServiceAsync(processPendingOutput: true);
307-
}
308-
309303
private void ReportProcessExited(Process process)
310304
{
311305
int? exitCode;

0 commit comments

Comments
 (0)