mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-27 05:54:41 +01:00
Cleanup event handler
This commit is contained in:
parent
be1573d900
commit
13873c8f56
@ -1281,6 +1281,7 @@ class MTProto extends AsyncConstruct implements TLCallback
|
||||
if ($this->event_handler && \class_exists($this->event_handler) && \is_subclass_of($this->event_handler, EventHandler::class)) {
|
||||
yield from $this->setEventHandler($this->event_handler);
|
||||
} else {
|
||||
$this->setNoop();
|
||||
$this->event_handler = null;
|
||||
$this->event_handler_instance = null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user