diff --git a/CHANGELOG.md b/CHANGELOG.md index 78c2205..83165d3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/TelnetNegotiationCore/Interpreters/TelnetStandardInterpreter.cs b/TelnetNegotiationCore/Interpreters/TelnetStandardInterpreter.cs index cddcabe..390a5e8 100644 --- a/TelnetNegotiationCore/Interpreters/TelnetStandardInterpreter.cs +++ b/TelnetNegotiationCore/Interpreters/TelnetStandardInterpreter.cs @@ -160,7 +160,7 @@ private StateMachine SetupStandardProtocol(StateMachine await WriteToOutput()); // SubNegotiation tsm.Configure(State.Accepting) @@ -218,12 +218,12 @@ private async ValueTask WriteToBufferAndAdvanceAsync(OneOf b) /// /// Write it to output - this should become an Event. /// - 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); } /// diff --git a/TelnetNegotiationCore/TelnetNegotiationCore.csproj b/TelnetNegotiationCore/TelnetNegotiationCore.csproj index b153cea..4939131 100644 --- a/TelnetNegotiationCore/TelnetNegotiationCore.csproj +++ b/TelnetNegotiationCore/TelnetNegotiationCore.csproj @@ -50,7 +50,7 @@ - +