Skip to content

Commit

Permalink
Fix a sample bug (#35444)
Browse files Browse the repository at this point in the history
  • Loading branch information
zackliu committed Apr 10, 2023
1 parent d0f24bd commit 2b4610f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sdk/webpubsub/Azure.Messaging.WebPubSub.Client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ try
}
catch (SendMessageFailedException ex)
{
if (ex.AckId == null)
if (ex.AckId != null)
{
await client.JoinGroupAsync("testGroup", ackId: ex.AckId);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public async Task WebPubSubClientJoinGroupAndRetry(WebPubSubClient client)
}
catch (SendMessageFailedException ex)
{
if (ex.AckId == null)
if (ex.AckId != null)
{
await client.JoinGroupAsync("testGroup", ackId: ex.AckId);
}
Expand Down

0 comments on commit 2b4610f

Please sign in to comment.