mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
@ -176,8 +176,12 @@ class Proc
|
||||
public function close($command = null)
|
||||
{
|
||||
if (isset($command)) {
|
||||
if (is_resource($this->_pipes[0])) {
|
||||
$this->sendInput($this->checkAddEOL($command));
|
||||
try {
|
||||
if (is_resource($this->_pipes[0])) {
|
||||
$this->sendInput($this->checkAddEOL($command));
|
||||
}
|
||||
} catch (\ErrorException $e) {
|
||||
// might have closed already
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user