From 2eff0819f971f56a98c235fd92f58b72cf07bdcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1chym=20Tou=C5=A1ek?= Date: Fri, 17 Sep 2021 16:40:54 +0200 Subject: [PATCH] Fix EioDriver --- src/Internal/EioPoll.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Internal/EioPoll.php b/src/Internal/EioPoll.php index 84bb1e4..25d4b86 100644 --- a/src/Internal/EioPoll.php +++ b/src/Internal/EioPoll.php @@ -25,6 +25,9 @@ public function __construct(Loop\Driver $driver) $this->driver = $driver; if (!self::$stream) { + if (\function_exists('eio_init')) { + \eio_init(); + } self::$stream = \eio_get_event_stream(); }