Skip to content

Commit

Permalink
Optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor committed Nov 4, 2024
1 parent 725dcff commit 7b52c03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Events/Select.php
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ public function run(): void
$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);
Expand Down Expand Up @@ -400,7 +400,7 @@ public function run(): void
}
}

if (!empty($this->signalEvents)) {
if ($this->signalEvents) {
// Calls signal handlers for pending signals
pcntl_signal_dispatch();
}
Expand Down

0 comments on commit 7b52c03

Please sign in to comment.