Skip to content

Commit

Permalink
Merge pull request #3 from nicchap/master
Browse files Browse the repository at this point in the history
Recource check
  • Loading branch information
ofbeaton authored Sep 1, 2017
2 parents 0575bb5 + 32a7cae commit a6a7963
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Ami.php
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,9 @@ public function disconnect()
$this->logoff();
}

fclose($this->socket);
if (is_recource($this->socket)) {
fclose($this->socket);
}
}//end disconnect()


Expand Down

0 comments on commit a6a7963

Please sign in to comment.