[icinga-checkins] icinga.org: icingaweb2/feature/livestatus-playground-4787: Livestatus\Connection: one more comment
git at icinga.org
git at icinga.org
Sun Nov 16 18:44:32 CET 2014
Module: icingaweb2
Branch: feature/livestatus-playground-4787
Commit: b6464c5d83cfa4ae9ef8cc2f82912e40423abc05
URL: https://git.icinga.org/?p=icingaweb2.git;a=commit;h=b6464c5d83cfa4ae9ef8cc2f82912e40423abc05
Author: Thomas Gelf <thomas at gelf.net>
Date: Sun Nov 16 18:43:11 2014 +0100
Livestatus\Connection: one more comment
---
library/Icinga/Protocol/Livestatus/Connection.php | 3 +++
1 file changed, 3 insertions(+)
diff --git a/library/Icinga/Protocol/Livestatus/Connection.php b/library/Icinga/Protocol/Livestatus/Connection.php
index d54c9d9..b2340ee 100644
--- a/library/Icinga/Protocol/Livestatus/Connection.php
+++ b/library/Icinga/Protocol/Livestatus/Connection.php
@@ -431,6 +431,9 @@ if ($col > $size - 1) return $res;
return $this;
}
+ /**
+ * Try to cleanly close the socket on shutdown
+ */
public function __destruct()
{
$this->disconnect();
More information about the icinga-checkins
mailing list