Skip to content

Commit

Permalink
Fixed negative queued msges
Browse files Browse the repository at this point in the history
- version count up
  • Loading branch information
Sandoun committed Sep 27, 2022
1 parent 19159ed commit 6a2f278
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion MewtocolNet/Mewtocol/MewtocolInterface.cs
Original file line number Diff line number Diff line change
Expand Up @@ -733,8 +733,11 @@ public async Task<CommandResult> SendCommandAsync (string _msg) {
try {

queuedMessages++;

var response = await queue.Enqueue(() => SendSingleBlock(_msg));
queuedMessages--;

if (queuedMessages > 0)
queuedMessages--;

if (response == null) {
return new CommandResult {
Expand Down
2 changes: 1 addition & 1 deletion MewtocolNet/MewtocolNet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<PackageId>MewtocolNet</PackageId>
<Version>0.5.8</Version>
<Version>0.6.0</Version>
<Authors>Felix Weiss</Authors>
<Company>Womed</Company>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
Expand Down

0 comments on commit 6a2f278

Please sign in to comment.