1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 05:34:42 +01:00

Merge pull request #1419 from thebrutish/v8

Add onStop method
This commit is contained in:
Daniil Gentili 2023-10-01 20:41:31 +02:00 committed by GitHub
commit ba682d0eca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -477,4 +477,10 @@ abstract class EventHandler extends AbstractAPI
return $plugins;
}
public function __destruct()
{
if (\method_exists($this, 'onStop')) {
$this->onStop();
}
}
}