Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
Fix on Client to get proper SenderFlow on Publish method
Browse files Browse the repository at this point in the history
  • Loading branch information
mauroa committed Dec 4, 2014
1 parent 98222c5 commit 6153d57
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Client/Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,7 @@ public async Task PublishAsync (ApplicationMessage message, QualityOfService qos
Payload = message.Payload
};

var flow = this.flowProvider.GetFlow (PacketType.Publish);
var senderFlow = flow as PublishSenderFlow;
var senderFlow = this.flowProvider.GetFlow<PublishSenderFlow> ();

await senderFlow.SendPublishAsync (this.Id, publish, this.protocolChannel);
}
Expand Down

0 comments on commit 6153d57

Please sign in to comment.