This commit is contained in:
Daniil Gentili 2020-02-26 19:17:46 +01:00
parent 5af7130b25
commit 43ee5342f4
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 2 additions and 2 deletions

2
docs

@ -1 +1 @@
Subproject commit a17ccba895f5e980947264f929611e157aa7c35c
Subproject commit 1060a5b402e5d1c74e2812fa85fc8b90ee174e02

View File

@ -176,10 +176,10 @@ class API extends InternalDoc
$this->logger->logger('Shutting down MadelineProto (API)');
if ($this->API) {
$this->API->destructing = true;
$this->API->unreference();
}
$this->destructing = true;
Tools::wait($this->wrapper->serialize(), true);
$this->API->unreference();
} else {
$this->logger->logger('Shutting down MadelineProto (old deserialized instance of API)');
}