mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-30 00:22:40 +01:00
So DD called the service, who called DD, but the services heart was broken because DD didnt answer... because she was still waiting for the service to answer her...
This commit is contained in:
@@ -3,6 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Net;
|
||||
using System.Net.Sockets;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Web.Script.Serialization;
|
||||
using System.Web.Security;
|
||||
using TGServiceInterface;
|
||||
@@ -118,7 +119,8 @@ namespace TGServerService
|
||||
break;
|
||||
}
|
||||
}
|
||||
SendCommand(SCAPICompat);
|
||||
//This needs to be done asyncronously otherwise DD won't be able to process it, because it's waiting for THIS THREAD to return
|
||||
ThreadPool.QueueUserWorkItem(_ => SendCommand(SCAPICompat));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user