Commits

Thomas Weinert  committed b32825e

Fix variable name for streams resources existence

  • Participants
  • Parent commits 347cbdb

Comments (0)

Files changed (1)

File src/Carica/Io/Event/Loop/StreamSelect.php

 
     private function tick() {
       if ($this->_running) {
-        if ($this->_hasStreams) {
+        if ($this->_hasResources) {
           $read = $this->_resources['read'];
           $write = $this->_resources['write'];
           $except = $this->_resources['except'];
     }
 
     private function updateStreamStatus() {
-      $this->_hasStreams = (
+      $this->_hasResources = (
         count($this->_resources['read']) > 0 ||
         count($this->_resources['write']) > 0 ||
         count($this->_resources['except']) > 0