From 79711406bca09d073d6e446036607d8a61223165 Mon Sep 17 00:00:00 2001 From: Paul Rock Date: Wed, 22 Aug 2018 02:21:04 +0300 Subject: [PATCH] fclose after return in closeSocket --- src/Client.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Client.php b/src/Client.php index c9c8c66..8ed5659 100644 --- a/src/Client.php +++ b/src/Client.php @@ -328,7 +328,6 @@ class Client implements Interfaces\ClientInterface */ private function closeSocket(): bool { - fclose($this->_socket); - return true; + return fclose($this->_socket); } }