mirror of
https://github.com/danog/MadelineProto.git
synced 2025-01-23 05:51:14 +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();
|
||||
}
|
||||
}
|
||||
if (\method_exists($this, 'onStop')) {
|
||||
Shutdown::addCallback([$this, 'onStop']);
|
||||
}
|
||||
if ($main) {
|
||||
$this->setReportPeers($this->getReportPeers());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user