walkor %!s(int64=11) %!d(string=hai) anos
pai
achega
35ef465659
Modificáronse 1 ficheiros con 4 adicións e 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]))
                 {