Skip to content

Commit ce00b62

Browse files
committed
Up version. Refactoring the algorithm for receiving and sending code and service messages
1 parent b13e9da commit ce00b62

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

service_info.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"services": {
33
"name": "RemotePythonExecution",
4-
"version": "0.0.6",
4+
"version": "0.0.7",
55
"projectType": "DotnetProject",
66
"dependencies": []
77
},

src/RemotePythonExecution.Services/RemotePythonExecutionService.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ protected override async Task ExecuteAsync(CancellationToken stoppingToken)
267267

268268
try
269269
{
270-
if (mProcess.HasExited)
270+
if ((bool) mProcess?.HasExited)
271271
{
272272
exitData = new ExitData
273273
{
@@ -417,11 +417,11 @@ private void KillProcess()
417417
{
418418
try
419419
{
420-
mProcess.CancelErrorRead();
421-
mProcess.CancelOutputRead();
420+
mProcess?.CancelErrorRead();
421+
mProcess?.CancelOutputRead();
422422

423-
mProcess.Kill(entireProcessTree: true);
424-
mLogger.LogInformation("KillProcess(): {id},", mProcess.Id);
423+
mProcess?.Kill(entireProcessTree: true);
424+
mLogger.LogInformation("KillProcess(): {id},", mProcess?.Id);
425425

426426
IsOutputEnded = true;
427427
}

src/RemotePythonExecution/RemotePythonExecution.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<TargetFramework>net8.0</TargetFramework>
66
<ImplicitUsings>disable</ImplicitUsings>
77
<Nullable>disable</Nullable>
8-
<Version>0.0.6</Version>
8+
<Version>0.0.7</Version>
99
<IsPackable>false</IsPackable>
1010
<Title>$(SolutionName)</Title>
1111
<Authors>vertigra</Authors>

0 commit comments

Comments
 (0)