Skip to content

Commit

Permalink
Event: Fix missing OnPublishReceivedEvent (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
pglombardo authored Apr 16, 2024
1 parent 8036846 commit eeac24c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/HiveMQtt/Client/HiveMQClientTrafficProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ private Task<bool> ReceivedPacketsHandlerAsync(CancellationToken cancellationTok
internal void HandleIncomingPublishPacket(PublishPacket publishPacket)
{
Logger.Trace($"{this.Options.ClientId}-(RPH)- <-- Received Publish id={publishPacket.PacketIdentifier}");
this.OnMessageReceivedEventLauncher(publishPacket);
this.OnPublishReceivedEventLauncher(publishPacket);

if (publishPacket.Message.QoS is MQTT5.Types.QualityOfService.AtLeastOnceDelivery)
{
Expand All @@ -409,6 +409,8 @@ internal void HandleIncomingPublishPacket(PublishPacket publishPacket)

this.SendQueue.Add(pubRecResponse);
}

Check warning on line 411 in Source/HiveMQtt/Client/HiveMQClientTrafficProcessor.cs

View workflow job for this annotation

GitHub Actions / pipeline-ubuntu-latest-dotnet-6.0.x

Check warning on line 411 in Source/HiveMQtt/Client/HiveMQClientTrafficProcessor.cs

View workflow job for this annotation

GitHub Actions / pipeline-ubuntu-latest-dotnet-7.0.x

Check warning on line 411 in Source/HiveMQtt/Client/HiveMQClientTrafficProcessor.cs

View workflow job for this annotation

GitHub Actions / pipeline-ubuntu-latest-dotnet-8.0.x

this.OnMessageReceivedEventLauncher(publishPacket);

}

Check warning on line 414 in Source/HiveMQtt/Client/HiveMQClientTrafficProcessor.cs

View workflow job for this annotation

GitHub Actions / pipeline-ubuntu-latest-dotnet-6.0.x

Check warning on line 414 in Source/HiveMQtt/Client/HiveMQClientTrafficProcessor.cs

View workflow job for this annotation

GitHub Actions / pipeline-ubuntu-latest-dotnet-7.0.x

Check warning on line 414 in Source/HiveMQtt/Client/HiveMQClientTrafficProcessor.cs

View workflow job for this annotation

GitHub Actions / pipeline-ubuntu-latest-dotnet-8.0.x


/// <summary>
Expand Down

0 comments on commit eeac24c

Please sign in to comment.