Rethrow original exception
This commit is contained in:
parent
1884818465
commit
dcd6500737
@ -300,7 +300,8 @@ trait Tools
|
||||
});
|
||||
});
|
||||
} catch (\Throwable $throwable) {
|
||||
throw new \Error('Loop exceptionally stopped without resolving the promise', 0, $throwable);
|
||||
Logger::log('Loop exceptionally stopped without resolving the promise', Logger::FATAL_ERROR);
|
||||
throw $throwable;
|
||||
}
|
||||
} while (!$resolved && !(Magic::$signaled && !$ignoreSignal));
|
||||
if ($exception) {
|
||||
|
@ -50,6 +50,7 @@ trait Login
|
||||
public function botLogin(string $token): \Generator
|
||||
{
|
||||
if ($this->authorized === self::LOGGED_IN) {
|
||||
return;
|
||||
$this->logger->logger(\danog\MadelineProto\Lang::$current_lang['already_loggedIn'], \danog\MadelineProto\Logger::NOTICE);
|
||||
yield from $this->logout();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user