From 4af29269b8c5da38f0c5479ba51181ed233e89ab Mon Sep 17 00:00:00 2001 From: Harry Cordewener Date: Sun, 17 Nov 2024 21:36:48 -0600 Subject: [PATCH] v1.0.9: Fix previous release by downgrading Stateless. Version 5.16.0 seems to have a bug. --- CHANGELOG.md | 5 +++++ .../Interpreters/TelnetStandardInterpreter.cs | 6 +++--- TelnetNegotiationCore/TelnetNegotiationCore.csproj | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) 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 @@ - +