Skip to content

Commit 2b4610f

Browse files
authored
Fix a sample bug (Azure#35444)
1 parent d0f24bd commit 2b4610f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sdk/webpubsub/Azure.Messaging.WebPubSub.Client/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ try
205205
}
206206
catch (SendMessageFailedException ex)
207207
{
208-
if (ex.AckId == null)
208+
if (ex.AckId != null)
209209
{
210210
await client.JoinGroupAsync("testGroup", ackId: ex.AckId);
211211
}

sdk/webpubsub/Azure.Messaging.WebPubSub.Client/tests/Samples/WebPubSubClientSample.HelloWorld.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public async Task WebPubSubClientJoinGroupAndRetry(WebPubSubClient client)
135135
}
136136
catch (SendMessageFailedException ex)
137137
{
138-
if (ex.AckId == null)
138+
if (ex.AckId != null)
139139
{
140140
await client.JoinGroupAsync("testGroup", ackId: ex.AckId);
141141
}

0 commit comments

Comments
 (0)