mirror of
https://github.com/danog/TelegramApiServer.git
synced 2024-11-29 20:09:05 +01:00
Enable async right away
unsetEventHandler will be callForked internally anyway
This commit is contained in:
parent
ed7467871a
commit
b39db1dfa3
@ -70,10 +70,10 @@ class Client
|
|||||||
Files::getSessionSettings($session),
|
Files::getSessionSettings($session),
|
||||||
);
|
);
|
||||||
$instance = new MadelineProto\API($file, $settings);
|
$instance = new MadelineProto\API($file, $settings);
|
||||||
|
$instance->async(true);
|
||||||
if (self::isSessionLoggedIn($instance)) {
|
if (self::isSessionLoggedIn($instance)) {
|
||||||
$instance->unsetEventHandler();
|
$instance->unsetEventHandler();
|
||||||
}
|
}
|
||||||
$instance->async(true);
|
|
||||||
|
|
||||||
$this->instances[$session] = $instance;
|
$this->instances[$session] = $instance;
|
||||||
return $instance;
|
return $instance;
|
||||||
|
Loading…
Reference in New Issue
Block a user