1
0
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:
Daniil Gentili 2021-05-11 15:39:50 +02:00
parent be1573d900
commit 13873c8f56
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -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;
}