mirror of
https://github.com/danog/MadelineProto.git
synced 2025-01-22 21:31:28 +01:00
Initialize reference database on cleanup
This commit is contained in:
parent
e5ab5cabac
commit
9511ebab38
@ -694,6 +694,7 @@ class MTProto extends AsyncConstruct implements TLCallback
|
||||
public function cleanup(): void
|
||||
{
|
||||
$this->referenceDatabase = new ReferenceDatabase($this);
|
||||
yield from $this->referenceDatabase->init();
|
||||
$callbacks = [$this, $this->referenceDatabase];
|
||||
if (!($this->authorization['user']['bot'] ?? false)) {
|
||||
$callbacks[] = $this->minDatabase;
|
||||
|
Loading…
x
Reference in New Issue
Block a user