mirror of
https://github.com/danog/amp.git
synced 2024-11-30 04:29:08 +01:00
Remove newloop protection from UvReactor
This commit is contained in:
parent
f686691892
commit
1480eecaba
@ -25,8 +25,8 @@ class UvReactor implements SignalReactor {
|
||||
private static $MODE_SIGNAL = 4;
|
||||
private static $MODE_IMMEDIATE = 5;
|
||||
|
||||
public function __construct($newLoop = false) {
|
||||
$this->loop = $newLoop ? uv_loop_new() : uv_default_loop();
|
||||
public function __construct() {
|
||||
$this->loop = uv_loop_new();
|
||||
$this->gcWatcher = uv_timer_init($this->loop);
|
||||
$this->gcCallback = function() { $this->collectGarbage(); };
|
||||
$this->isWindows = (stripos(PHP_OS, 'win') === 0);
|
||||
|
Loading…
Reference in New Issue
Block a user