Skip to content

Commit

Permalink
Fixed timeout issue
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterKottas committed Jun 2, 2018
1 parent c069b0d commit 9687a2d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ internal void StopService()
Console.WriteLine("Stopping the {0} service", _consoleService.ServiceName);

Task stopTask = Task.Run(() => _consoleService.Stop());
if (!stopTask.Wait(TimeSpan.FromMilliseconds(150)))
if (!stopTask.Wait(TimeSpan.FromMilliseconds(1500)))
throw new Exception("The service failed to stop (returned false).");

_exitCode = ExitCode.Ok;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

<PropertyGroup>
<TargetFrameworks>netcoreapp2.0;net461</TargetFrameworks>
<Version>2.0.7</Version>
<AssemblyVersion>2.0.7.0</AssemblyVersion>
<FileVersion>2.0.7.0</FileVersion>
<Version>2.0.8</Version>
<AssemblyVersion>2.0.8.0</AssemblyVersion>
<FileVersion>2.0.8.0</FileVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="DasMulli.Win32.ServiceUtils" Version="1.2.0" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<metadata>
<id>PeterKottas.DotNetCore.WindowsService</id>
<title>PeterKottas.DotNetCore.WindowsService</title>
<version>2.0.7</version>
<version>2.0.8</version>
<authors>Peter Kottas</authors>
<description>Easiest to use library that allows one to host .net core as windows services there is.</description>
<summary>.NET Core Windows service</summary>
Expand Down

0 comments on commit 9687a2d

Please sign in to comment.