From b229ce33996f7970029e801b551c6437b7a38908 Mon Sep 17 00:00:00 2001 From: rennokki Date: Fri, 16 Apr 2021 00:16:39 +0300 Subject: [PATCH] [2.x] Fix fclose for socket --- SourceQuery/Socket.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SourceQuery/Socket.php b/SourceQuery/Socket.php index 4f5cf9f..3ade82a 100644 --- a/SourceQuery/Socket.php +++ b/SourceQuery/Socket.php @@ -27,7 +27,7 @@ { public function Close( ) : void { - if( $this->Socket !== null ) + if( $this->Socket ) { FClose( $this->Socket );