1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 10:38:59 +01:00
This commit is contained in:
Daniil Gentili 2023-06-25 20:00:41 +02:00
parent 9b3502684d
commit 9370181002
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 4 additions and 4 deletions

2
docs

@ -1 +1 @@
Subproject commit 7cd192b66745b2cab7b81e2473d23f2658c02c8c
Subproject commit 99b3bda3cfae44745a7b8ffaf42e1328653b79b8

View File

@ -84,14 +84,14 @@ abstract class EventHandler extends AbstractAPI
*/
final public function internalStart(APIWrapper $MadelineProto, array $pluginsPrev, array &$pluginsNew, bool $main = true): ?array
{
if ($this->startedInternal) {
return null;
}
$this->startMutex ??= new LocalMutex;
$this->startDeferred ??= new DeferredFuture;
$startDeferred = $this->startDeferred;
$lock = $this->startMutex->acquire();
try {
if ($this->startedInternal) {
return null;
}
$this->wrapper = $MadelineProto;
$this->exportNamespaces();