- Updates daemon request timeouts

This commit is contained in:
Vlad
2016-07-26 10:53:20 -04:00
parent 0b0c0f5759
commit 1be7fda1cf
2 changed files with 5 additions and 4 deletions

View File

@@ -16,6 +16,7 @@ class Daemon {
const STATUS_STOPPING = 'stopping';
const STATUS_STARTED = 'started';
const STATUS_STARTING = 'starting';
const REQUEST_TIMEOUT = 5;
private $timer;
function __construct($data) {
@@ -78,7 +79,7 @@ class Daemon {
}
function callSelf() {
CronHelper::accessDaemon($this->token);
CronHelper::accessDaemon($this->token, self::REQUEST_TIMEOUT);
$this->terminateRequest();
}