diff --git a/composer.json b/composer.json index aa3edbb..59252f8 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,7 @@ }, "require": { "voryx/thruway-common": "^1.0", - "react/event-loop": "^0.4.3", + "react/event-loop": "^1.0 || ^0.5 || ^0.4.3", "evenement/evenement": "^3.0 || ^2.0", "psr/log": "^1.0", "react/promise-timer": "^1.2.1" diff --git a/src/Connection.php b/src/Connection.php index 09f7bc6..03e5d43 100644 --- a/src/Connection.php +++ b/src/Connection.php @@ -76,7 +76,7 @@ public function __construct(Array $options, LoopInterface $loop = null) */ public function doEvents($timer = 1) { - $loop = $this->getClient()->getLoop(); + /*$loop = $this->getClient()->getLoop(); $looping = true; $loop->addTimer($timer, function () use (&$looping) { @@ -86,7 +86,7 @@ public function doEvents($timer = 1) while ($looping) { usleep(1000); $loop->tick(); - } + }*/ } /**