Minor fixes

This commit is contained in:
Daniil Gentili 2020-09-28 17:19:41 +02:00
parent f5e4d29db1
commit e5c430dfc9
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 4 additions and 2 deletions

View File

@ -362,8 +362,8 @@ class API extends InternalDoc
while (true) {
try {
yield $this->start();
$started = true;
yield $this->setEventHandler($eventHandler);
$started = true;
return yield from $this->API->loop();
} catch (\Throwable $e) {
$errors = [\time() => $errors[\time()] ?? 0];

View File

@ -47,8 +47,10 @@ class MyTelegramOrgWrapper
private string $creation_hash = '';
/**
* Settings.
*
* @var Settings
*/
private Settings $settings;
private $settings;
/**
* Async setting.
*/