Minor correction
This commit is contained in:
parent
0dd40dd600
commit
aaa06a9969
1 changed files with 4 additions and 1 deletions
|
@ -144,9 +144,12 @@
|
||||||
Log::debug(Utilities::getName(), sprintf('JobManager disconnecting from %s:%s', $this->server_configuration->getHost(), $this->server_configuration->getPort()));
|
Log::debug(Utilities::getName(), sprintf('JobManager disconnecting from %s:%s', $this->server_configuration->getHost(), $this->server_configuration->getPort()));
|
||||||
|
|
||||||
try
|
try
|
||||||
|
{
|
||||||
|
if($this->redis_client instanceof Redis)
|
||||||
{
|
{
|
||||||
$this->redis_client->close();
|
$this->redis_client->close();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
catch(Exception $e)
|
catch(Exception $e)
|
||||||
{
|
{
|
||||||
Log::warning(Utilities::getName(),sprintf('JobManager could not disconnect safely from %s:%s', $this->server_configuration->getHost(), $this->server_configuration->getPort()), $e);
|
Log::warning(Utilities::getName(),sprintf('JobManager could not disconnect safely from %s:%s', $this->server_configuration->getHost(), $this->server_configuration->getPort()), $e);
|
||||||
|
|
Loading…
Add table
Reference in a new issue