From b6464c5d83cfa4ae9ef8cc2f82912e40423abc05 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Sun, 16 Nov 2014 18:43:11 +0100 Subject: [PATCH] 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 d54c9d991..b2340eeec 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();