mirror of
https://github.com/danog/TelegramApiServer.git
synced 2024-11-30 04:19:13 +01:00
Trigger EventHandler destruct
This commit is contained in:
parent
8aaf06bd2f
commit
9e18823534
@ -145,7 +145,7 @@ class Client
|
||||
while (static::isSessionLoggedIn($instance)) {
|
||||
try {
|
||||
$instance->loop();
|
||||
warning('Update loop stopped: ' . $instance->session);
|
||||
warning('Update loop stopped: ' . Files::getSessionName($instance->session));
|
||||
} catch (\Throwable $e) {
|
||||
error('Error in Madeline Loop.', Logger::getExceptionAsArray($e));
|
||||
Client::getInstance()->removeBrokenSessions();
|
||||
|
@ -31,6 +31,7 @@ class EventHandler extends \danog\MadelineProto\EventHandler
|
||||
if (empty(static::$instances[$this->sessionName])) {
|
||||
warning("Sending stop signal: {$this->sessionName}");
|
||||
$this->stop();
|
||||
$this->unsetEventHandler();
|
||||
$this->setNoop();
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user