timeout can be passed to constructor

This commit is contained in:
Uwe Steinmann 2023-01-01 09:18:52 +01:00
parent 06e9f41ec1
commit 8940a3b338

View File

@ -91,11 +91,11 @@ class SeedDMS_ConversionServiceExec extends SeedDMS_ConversionServiceBase {
}
} /* }}} */
public function __construct($from, $to, $cmd) {
public function __construct($from, $to, $cmd, $timeout=5) {
$this->from = $from;
$this->to = $to;
$this->cmd = $cmd;
$this->timeout = 5;
$this->timeout = ((int) $timeout) ? (int) $timeout : 5;
}
public function getInfo() {