diff --git a/MewtocolNet/Mewtocol/MewtocolInterface.cs b/MewtocolNet/Mewtocol/MewtocolInterface.cs index cbf58c5..543ddf4 100644 --- a/MewtocolNet/Mewtocol/MewtocolInterface.cs +++ b/MewtocolNet/Mewtocol/MewtocolInterface.cs @@ -733,8 +733,11 @@ public async Task SendCommandAsync (string _msg) { try { queuedMessages++; + var response = await queue.Enqueue(() => SendSingleBlock(_msg)); - queuedMessages--; + + if (queuedMessages > 0) + queuedMessages--; if (response == null) { return new CommandResult { diff --git a/MewtocolNet/MewtocolNet.csproj b/MewtocolNet/MewtocolNet.csproj index 68d208c..6c18f57 100644 --- a/MewtocolNet/MewtocolNet.csproj +++ b/MewtocolNet/MewtocolNet.csproj @@ -2,7 +2,7 @@ netstandard2.0 MewtocolNet - 0.5.8 + 0.6.0 Felix Weiss Womed true