mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-30 10:38:59 +01:00
Fix
This commit is contained in:
parent
9b3502684d
commit
9370181002
2
docs
2
docs
@ -1 +1 @@
|
||||
Subproject commit 7cd192b66745b2cab7b81e2473d23f2658c02c8c
|
||||
Subproject commit 99b3bda3cfae44745a7b8ffaf42e1328653b79b8
|
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user