Bugfix
This commit is contained in:
parent
5af7130b25
commit
43ee5342f4
2
docs
2
docs
@ -1 +1 @@
|
|||||||
Subproject commit a17ccba895f5e980947264f929611e157aa7c35c
|
Subproject commit 1060a5b402e5d1c74e2812fa85fc8b90ee174e02
|
@ -176,10 +176,10 @@ class API extends InternalDoc
|
|||||||
$this->logger->logger('Shutting down MadelineProto (API)');
|
$this->logger->logger('Shutting down MadelineProto (API)');
|
||||||
if ($this->API) {
|
if ($this->API) {
|
||||||
$this->API->destructing = true;
|
$this->API->destructing = true;
|
||||||
|
$this->API->unreference();
|
||||||
}
|
}
|
||||||
$this->destructing = true;
|
$this->destructing = true;
|
||||||
Tools::wait($this->wrapper->serialize(), true);
|
Tools::wait($this->wrapper->serialize(), true);
|
||||||
$this->API->unreference();
|
|
||||||
} else {
|
} else {
|
||||||
$this->logger->logger('Shutting down MadelineProto (old deserialized instance of API)');
|
$this->logger->logger('Shutting down MadelineProto (old deserialized instance of API)');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user