mirror of
https://github.com/danog/TelegramApiServer.git
synced 2024-11-26 11:54:42 +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),
|
||||
);
|
||||
$instance = new MadelineProto\API($file, $settings);
|
||||
$instance->async(true);
|
||||
if (self::isSessionLoggedIn($instance)) {
|
||||
$instance->unsetEventHandler();
|
||||
}
|
||||
$instance->async(true);
|
||||
|
||||
$this->instances[$session] = $instance;
|
||||
return $instance;
|
||||
|
Loading…
Reference in New Issue
Block a user