mirror of
https://github.com/unraid/webgui.git
synced 2026-01-27 03:59:01 -06:00
Error checking
This commit is contained in:
@@ -749,9 +749,9 @@ class DockerClient {
|
||||
|
||||
public function stopContainer($id, $t=false) {
|
||||
global $dockercfg;
|
||||
|
||||
|
||||
if ( ! $t )
|
||||
$t = $dockercfg['DOCKER_TIMEOUT'] ?: 10;
|
||||
$t = intval($dockercfg['DOCKER_TIMEOUT']) ?: 10;
|
||||
$this->getDockerJSON("/containers/$id/stop?t=$t", 'POST', $code);
|
||||
$this->flushCache($this::$containersCache);
|
||||
return $code;
|
||||
|
||||
Reference in New Issue
Block a user