walkor / workerman

An asynchronous event driven PHP socket framework. Supports HTTP, Websocket, SSL and other custom protocols.

Home Page:http://www.workerman.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EV events on destroy error

webrobot1 opened this issue · comments

workerman version 4 has error at code

   public function destroy()
    {
        foreach ($this->_allEvents as $event) {
            $event->stop();
        }
    }

it cant be work bacause structure of $this->_allEvents it is 2 levels's array like at code

$this->_allEvents[$fd_key][$flag] = $event;

maybe it need stoop $this->_eventSignal or what ?

commented

Fixed and thank you for your post.