Skip to content

Commit c87eed9

Browse files
committed
test for deadlock in discord linkaccount
1 parent 4d15a7a commit c87eed9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Zero-K.info/Controllers/HomeController.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
using ZkData;
2323
using System.Net.Http;
2424
using Newtonsoft.Json.Linq;
25+
using System.Threading;
2526

2627
namespace ZeroKWeb.Controllers
2728
{
@@ -238,6 +239,7 @@ public ActionResult NotLoggedIn()
238239

239240
public ActionResult DiscordAuth(string code, string state)
240241
{
242+
SynchronizationContext.SetSynchronizationContext(null);
241243
Global.Server.DiscordWebApi.LinkAccount(state, code);
242244
return Content("Linking discord account");
243245
}

0 commit comments

Comments
 (0)