Skip to content

Commit

Permalink
IOStream->close(): isset() check
Browse files Browse the repository at this point in the history
  • Loading branch information
kakserpom committed Jan 21, 2013
1 parent 35918cf commit f416669
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/IOStream.php
Expand Up @@ -288,7 +288,7 @@ public function stdin($buf) {}
* @return void
*/
public function close() {
if (is_resource($this->buffer)) {
if (isset($this->buffer) && is_resource($this->buffer)) {
bufferevent_free($this->buffer);
$this->buffer = null;
}
Expand Down

0 comments on commit f416669

Please sign in to comment.