Skip to content

Commit

Permalink
v1.0.9: Fix previous release by downgrading Stateless. Version 5.16.0…
Browse files Browse the repository at this point in the history
… seems to have a bug.
  • Loading branch information
HarryCordewener committed Nov 18, 2024
1 parent 5d6d3cc commit 4af2926
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Change Log
All notable changes to this project will be documented in this file.

## [1.0.9] - 2024-11-17

### Changed
- Fix a bug in 1.0.8 by downgrading the Stateless package.

## [1.0.8] - 2024-11-17

### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ private StateMachine<State, Trigger> SetupStandardProtocol(StateMachine<State, T
// We've gotten a newline. We interpret this as time to act and send a signal back.
tsm.Configure(State.Act)
.SubstateOf(State.Accepting)
.OnEntry(WriteToOutput);
.OnEntryAsync(async () => await WriteToOutput());

// SubNegotiation
tsm.Configure(State.Accepting)
Expand Down Expand Up @@ -218,12 +218,12 @@ private async ValueTask WriteToBufferAndAdvanceAsync(OneOf<byte, Trigger> b)
/// <summary>
/// Write it to output - this should become an Event.
/// </summary>
private void WriteToOutput()
private async ValueTask WriteToOutput()
{
var cp = new byte[_bufferPosition];
_buffer.AsSpan()[.._bufferPosition].CopyTo(cp);
_bufferPosition = 0;
CallbackOnSubmitAsync.Invoke(cp, CurrentEncoding, this);
await CallbackOnSubmitAsync.Invoke(cp, CurrentEncoding, this);
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion TelnetNegotiationCore/TelnetNegotiationCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
</Content>
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.0" />
<PackageReference Include="OneOf" Version="3.0.271" />
<PackageReference Include="stateless" Version="5.16.0" />
<PackageReference Include="stateless" Version="5.15.0" />
<PackageReference Include="System.Collections.Immutable" Version="9.0.0" />
<PackageReference Include="System.Runtime" Version="4.3.1" />
</ItemGroup>
Expand Down

0 comments on commit 4af2926

Please sign in to comment.