1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 13:14:40 +01:00

Revert hotfix, the bug has to be fixed upstream in php itself

This commit is contained in:
Daniil Gentili 2023-02-04 11:29:45 +01:00
parent 9ee8c00eb9
commit be7e401bcd

View File

@ -47,7 +47,7 @@ final class GarbageCollector
}
self::$started = true;
/*EventLoop::unreference(EventLoop::repeat(1, static function (): void {
EventLoop::unreference(EventLoop::repeat(1, static function (): void {
$currentMemory = self::getMemoryConsumption();
if ($currentMemory > self::$memoryConsumption + self::$memoryDiffMb) {
\gc_collect_cycles();
@ -57,7 +57,7 @@ final class GarbageCollector
Logger::log("gc_collect_cycles done. Cleaned memory: $cleanedMemory Mb", Logger::VERBOSE);
}
}
}));*/
}));
if (!\defined('MADELINE_RELEASE_URL')) {
return;