Skip to content

Commit 141c629

Browse files
committed
Look for StreamSelectLoop
1 parent e8207c4 commit 141c629

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Context/ForkContext.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use Amp\Serialization\NativeSerializer;
1010
use Amp\Serialization\Serializer;
1111
use Amp\TimeoutCancellation;
12+
use React\EventLoop\StreamSelectLoop;
1213
use Revolt\EventLoop;
1314
use Revolt\EventLoop\Driver\UvDriver;
1415

@@ -34,8 +35,7 @@ final class ForkContext extends AbstractContext
3435

3536
public static function isSupported(): bool
3637
{
37-
return \function_exists('pcntl_fork')
38-
&& !EventLoop::getDriver() instanceof UvDriver;
38+
return \function_exists('pcntl_fork') && EventLoop::getDriver() instanceof StreamSelectLoop;
3939
}
4040

4141
/**

0 commit comments

Comments
 (0)