walkor hace 11 años
padre
commit
35ef465659
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      man/Core/Events/Libevent.php

+ 4 - 0
man/Core/Events/Libevent.php

@@ -110,6 +110,10 @@ class Libevent implements BaseEvent
                     event_del($this->allEvents[$fd_key][$flag]);
                 }
                 unset($this->allEvents[$fd_key][$flag]);
+                if(empty($this->allEvents[$fd_key]))
+                {
+                    unset($this->allEvents[$fd_key]);
+                }
             case  \Man\Core\Events\BaseEvent::EV_SIGNAL:
                 if(isset($this->eventSignal[$fd_key]))
                 {