summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/rest
diff options
context:
space:
mode:
Diffstat (limited to 'admin/WebConsole/rest')
-rw-r--r--admin/WebConsole/rest/remotepc.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/admin/WebConsole/rest/remotepc.php b/admin/WebConsole/rest/remotepc.php
index 6a897e0a..6dc5a62d 100644
--- a/admin/WebConsole/rest/remotepc.php
+++ b/admin/WebConsole/rest/remotepc.php
@@ -185,6 +185,9 @@ INSERT INTO acciones
idcentro=$ouid;
EOD;
$t2 = $cmd->Ejecutar();
+ create_schedule_now(strval($timestamp),
+ $EJECUCION_COMANDO,
+ "auto-queue-remotepc-reserve-".$timestamp);
// Create event to remove reservation on timeout (15 min.).
$timeout = "15 MINUTE";
$cmd->texto = <<<EOD
@@ -679,6 +682,9 @@ INSERT INTO acciones
idcentro=$ouid;
EOD;
$cmd->Ejecutar();
+ create_schedule_now(strval($timestamp),
+ $EJECUCION_COMANDO,
+ "auto-queue-remotepc-init-".$timestamp);
// Create event to remove the operation on timeout (15 min.).
$timeout = "15 MINUTE";
$cmd->texto = <<<EOD