mirror of
https://github.com/danog/TelegramApiServer.git
synced 2024-11-30 04:19:13 +01:00
EventHandler destruct fix
This commit is contained in:
parent
210762f9e0
commit
38246890f7
@ -8,4 +8,4 @@ opcache.validate_timestamps=1
|
||||
opcache.revalidate_freq=0
|
||||
opcache.huge_code_pages=1
|
||||
opcache.jit_buffer_size=32M
|
||||
opcache.jit=1235
|
||||
opcache.jit=function
|
@ -22,6 +22,9 @@ class EventHandler extends \danog\MadelineProto\EventHandler
|
||||
|
||||
public function __destruct()
|
||||
{
|
||||
if (empty($this->sessionName)) {
|
||||
return;
|
||||
}
|
||||
unset(static::$instances[$this->sessionName]);
|
||||
warning("Event observer DESTRUCTED: {$this->sessionName}");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user