Skip to content

Commit 2b50d83

Browse files
authored
Reset socket variable to null
Fixes #140
1 parent 5ee1614 commit 2b50d83

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/MinecraftPing.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ public function Connect( )
6767

6868
if( !$this->Socket )
6969
{
70+
$this->Socket = null;
71+
7072
throw new MinecraftPingException( "Failed to connect or create a socket: $errno ($errstr)" );
7173
}
7274

0 commit comments

Comments
 (0)