mirror of
https://github.com/danog/MadelineProto.git
synced 2025-01-23 10:31:13 +01:00
Add onStop method
This commit is contained in:
parent
8bac02e925
commit
1ca83568cf
@ -149,6 +149,9 @@ abstract class EventHandler extends AbstractAPI
|
|||||||
$r = $r->await();
|
$r = $r->await();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (\method_exists($this, 'onStop')) {
|
||||||
|
Shutdown::addCallback([$this, 'onStop']);
|
||||||
|
}
|
||||||
if ($main) {
|
if ($main) {
|
||||||
$this->setReportPeers($this->getReportPeers());
|
$this->setReportPeers($this->getReportPeers());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user