Bläddra i källkod

Optimizations

walkor 1 år sedan
förälder
incheckning
7b52c036af
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      src/Events/Select.php

+ 2 - 2
src/Events/Select.php

@@ -364,7 +364,7 @@ final class Select implements EventInterface
             $read = $this->readFds;
             $write = $this->writeFds;
             $except = $this->exceptFds;
-            if (!empty($read) || !empty($write) || !empty($except)) {
+            if ($read || $write || $except) {
                 // Waiting read/write/signal/timeout events.
                 try {
                     @stream_select($read, $write, $except, 0, $this->selectTimeout);
@@ -400,7 +400,7 @@ final class Select implements EventInterface
                 }
             }
 
-            if (!empty($this->signalEvents)) {
+            if ($this->signalEvents) {
                 // Calls signal handlers for pending signals
                 pcntl_signal_dispatch();
             }