Skip to content

Commit

Permalink
check if resource before closing
Browse files Browse the repository at this point in the history
  • Loading branch information
robske110 committed Nov 15, 2016
1 parent 7fa9f60 commit a96b7b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pocketmine/command/CommandReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ public function run(){
$lastLine = microtime(true);
}
global $stdin;
fclose($stdin);
if(is_resource($stdin)){
fclose($stdin);
}
}

public function getThreadName(){
Expand Down

0 comments on commit a96b7b6

Please sign in to comment.