From a64e55cbd8e284d1c61d94252b928f36df7aa2e7 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Fri, 7 Jun 2019 20:56:40 +0200 Subject: [PATCH] fix --- docs | 2 +- src/danog/MadelineProto/API.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs b/docs index dbb560f1..d06f79a1 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit dbb560f13e9c15c7bfc96c7ae44bb3ae74c75fe7 +Subproject commit d06f79a1848bd380d6ad9a71a3ead0c2c2ded4a1 diff --git a/src/danog/MadelineProto/API.php b/src/danog/MadelineProto/API.php index accd0954..73796bf2 100644 --- a/src/danog/MadelineProto/API.php +++ b/src/danog/MadelineProto/API.php @@ -207,7 +207,7 @@ class API extends APIFactory public function APIFactory() { - if ($this->API) { + if ($this->API && !$this->API->asyncInitPromise) { foreach ($this->API->get_method_namespaces() as $namespace) { $this->{$namespace} = new APIFactory($namespace, $this->API, $this->async); }