Skip to content

Commit

Permalink
Merge pull request #2713 from skyyearxp/master
Browse files Browse the repository at this point in the history
avoid ui dead lock
  • Loading branch information
JeffreySu authored Sep 16, 2022
2 parents 4780b58 + 13fe51b commit ad1964c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ public static async Task RegisterAsync(string appId, string appSecret, string na
//为JsApiTicketContainer进行自动注册
var registerJsApiTask = JsApiTicketContainer.RegisterAsync(appId, appSecret, name);

await Task.WhenAll(new[] { registerTask, registerJsApiTask });//等待所有任务完成
await Task.WhenAll(new[] { registerTask, registerJsApiTask }).ConfigureAwait(false);//等待所有任务完成
}

#region AccessToken
Expand Down

0 comments on commit ad1964c

Please sign in to comment.