Skip to content

Commit 4ca0a84

Browse files
authored
Fix Deadlock (#24)
1 parent 990867a commit 4ca0a84

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ServiceStack.Azure/Messaging/ServiceBusMqClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public override void Dispose()
8686
string lockToken = null;
8787

8888
#if NETSTANDARD2_0
89-
var msg = sbClient.ReceiveAsync(timeout).Result;
89+
var msg = Task.Run(() => sbClient.ReceiveAsync(timeout)).GetAwaiter().GetResult();
9090
if (msg != null)
9191
lockToken = msg.SystemProperties.LockToken;
9292
#else

0 commit comments

Comments
 (0)