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:
Cyberboss
2017-09-19 16:50:06 -04:00
parent 742380ba9b
commit fd89027260
+3 -1
View File
@@ -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;
}
}