diff --git a/pandora_agents/ChangeLog b/pandora_agents/ChangeLog index b083a1bfca..58fcc1f6a8 100644 --- a/pandora_agents/ChangeLog +++ b/pandora_agents/ChangeLog @@ -1,3 +1,7 @@ +2011-09-15 Vanessa Gil + + * win32/pandora_windows_service.cc: Fixed problem sending xml file. + 2011-09-08 Vanessa Gil * win32/bin/pandora_agent.conf: Added example about module preconditions. diff --git a/pandora_agents/win32/pandora_windows_service.cc b/pandora_agents/win32/pandora_windows_service.cc index 652b2657df..88ddc6d73e 100644 --- a/pandora_agents/win32/pandora_windows_service.cc +++ b/pandora_agents/win32/pandora_windows_service.cc @@ -1424,6 +1424,15 @@ Pandora_Windows_Service::pandora_run_broker (string config) { this->modules->goNext (); } } + +this->elapsed_transfer_time += this->interval; + +if (this->elapsed_transfer_time >= this->transfer_interval) { + this->elapsed_transfer_time = 0; + if (!server_addr.empty ()) { + this->sendXml (this->modules); + } +} return; }