1
0
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:
Daniel Lowrey 2014-12-01 15:39:57 -05:00
parent f686691892
commit 1480eecaba

View File

@ -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);