Skip to content

Commit 6886bdd

Browse files
committed
FIX: Add return code to end of receiver listen mode
1 parent 2b689b7 commit 6886bdd

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

CliNetliteInstaller/CliNetliteInstaller.wixproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<ProductVersion>3.10</ProductVersion>
77
<ProjectGuid>f13fb7ef-d892-4229-a1eb-8b595d71d64e</ProjectGuid>
88
<SchemaVersion>2.0</SchemaVersion>
9-
<OutputName>cli-netlite-1.1.0.3</OutputName>
9+
<OutputName>cli-netlite-1.1.0.4</OutputName>
1010
<OutputType>Package</OutputType>
1111
</PropertyGroup>
1212
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">

CliNetliteInstaller/Product.wxs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<?define version="1.1.0.3"?>
2+
<?define version="1.1.0.4"?>
33
<?define UpgradeCode="a580c04f-caec-4e18-9134-c4b8f1c8f1be"?>
44
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
55
<Product Id="*"

ClientLib/ReceiverClient.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,12 +166,13 @@ async Task ReplyAsync(MessageContext messageContext)
166166
catch (Exception exception)
167167
{
168168
Console.Error.WriteLine("ERROR: {{'cause': '{0}'}}", exception.Message);
169-
break;
169+
Environment.Exit(ReturnCode.ERROR_OTHER);
170170
}
171171

172172
await Task.Delay(500);
173173
}
174174
host.Close();
175+
Environment.Exit(ReturnCode.ERROR_SUCCESS);
175176
}
176177
}
177178

0 commit comments

Comments
 (0)