Skip to content

Commit

Permalink
Set example package to link to 0.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
pglombardo committed Sep 28, 2023
1 parent 1cf904b commit e1d1c4f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion Examples/Reconnect/Reconnect.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<!-- Update the version to match -->
<ItemGroup>
<PackageReference Include="HiveMQtt" Version="0.4.0" />
<PackageReference Include="HiveMQtt" Version="0.4.1" />
</ItemGroup>

</Project>
4 changes: 0 additions & 4 deletions Source/HiveMQtt/Client/HiveMQClientTrafficProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -356,20 +356,16 @@ private Task<bool> TrafficInflowProcessorAsync(CancellationToken cancellationTok
case ConnectState.Disconnected:
// This disconnect was either user or broker initiated.
// Launch the AfterDisconnect event with a clean disconnect set to true.
Trace.WriteLine($"Launching AfterDisconnect event: connectState: {this.connectState}");
this.AfterDisconnectEventLauncher(true);
break;
case ConnectState.Connected:
// This is an unexpected exit and may be due to a failure.
// Launch the AfterDisconnect event with a clean disconnect set to false.
Trace.WriteLine($"Launching AfterDisconnect event: connectState: {this.connectState}");
this.AfterDisconnectEventLauncher(false);
break;
case ConnectState.Connecting:
Trace.WriteLine($"NOT Launching AfterDisconnect event: connectState: {this.connectState}");
break;
default:
Trace.WriteLine($"xxNOT Launching AfterDisconnect event: connectState: {this.connectState}");
break;
}

Expand Down

0 comments on commit e1d1c4f

Please sign in to comment.