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

Protect script creator with mutex

This commit is contained in:
Daniil Gentili 2023-07-16 18:42:24 +02:00
parent 2e0d9355be
commit 171968eda1

View File

@ -119,7 +119,7 @@ trait FileServer
]);
}
private static ?LocalMutex $scriptMutex = null;
private ?LocalMutex $scriptMutex = null;
private static array $checkedAutoload = [];
private const DOWNLOAD_SCRIPT = '<?php require %s; \danog\MadelineProto\API::downloadServer(__DIR__);';
private function getDefaultDownloadScript(): string