Skip to content

Commit

Permalink
Fix error in ipc and update sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
LucHeart committed Aug 16, 2024
1 parent a476fee commit 1da8689
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions ShockOsc/Services/Pipes/PipeServerService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@ namespace OpenShock.ShockOsc.Services.Pipes;
public sealed class PipeServerService
{
private readonly ILogger<PipeServerService> _logger;
private readonly IHostApplicationLifetime _appLifetime;
private uint _clientCount = 0;

public PipeServerService(ILogger<PipeServerService> logger, IHostApplicationLifetime appLifetime)
public PipeServerService(ILogger<PipeServerService> logger)
{
_logger = logger;
_appLifetime = appLifetime;
}

public string? Token { get; set; }
Expand All @@ -35,7 +33,7 @@ private async Task ServerLoop()

_logger.LogInformation("[{Id}] Starting new server loop", id);

await pipeServerStream.WaitForConnectionAsync(_appLifetime.ApplicationStopped);
await pipeServerStream.WaitForConnectionAsync();
#pragma warning disable CS4014
OsTask.Run(ServerLoop);
#pragma warning restore CS4014
Expand Down
2 changes: 1 addition & 1 deletion ShockOsc/ShockOsc.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
<PackageReference Include="MeaMod.DNS" Version="1.0.71" />
<PackageReference Include="OpenShock.SDK.CSharp" Version="0.0.25" />
<PackageReference Include="OpenShock.SDK.CSharp.Hub" Version="0.0.24" />
<PackageReference Include="OpenShock.SDK.CSharp.Live" Version="0.0.25" />
<PackageReference Include="OpenShock.SDK.CSharp.Live" Version="0.0.26" />
<PackageReference Include="OscQueryLibrary" Version="1.0.0" />
<PackageReference Include="Semver" Version="2.3.0"/>
<PackageReference Include="Serilog" Version="4.0.1" />
Expand Down

0 comments on commit 1da8689

Please sign in to comment.