mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
using stream_select to avoid blocking by fread
This commit is contained in:
parent
7bc464d45e
commit
9e38ff764a
2 changed files with 17 additions and 1 deletions
|
|
@ -50,6 +50,10 @@ class PluginAPI extends stdClass{
|
|||
}
|
||||
|
||||
public function __destruct(){
|
||||
if(!isset($this->plugins) || !is_array($this->plugins)){
|
||||
ConsoleAPI::warn("PluginAPI::\$plugins is null (destructor called twice?)");
|
||||
return;
|
||||
}
|
||||
foreach($this->plugins as $p){
|
||||
if(method_exists($p[0], "__destruct")){$p[0]->__destruct();};
|
||||
}
|
||||
|
|
@ -308,4 +312,4 @@ class RequiredPluginEntry{ //Use this as object of requirements array
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue