This commit is contained in:
Daniil Gentili 2024-06-26 22:28:58 +02:00
parent 8d321fec31
commit b3d8cdd6a4
2 changed files with 0 additions and 12 deletions

View File

@ -83,9 +83,6 @@ foreach ($options['session'] as $session) {
} }
StartUpFixes::fix(); StartUpFixes::fix();
foreach ($sessions as $session) {
StartUpFixes::removeBrokenIpc($session);
}
new TelegramApiServer\Server\Server( new TelegramApiServer\Server\Server(
$options, $options,

View File

@ -8,13 +8,4 @@ class StartUpFixes
{ {
define('MADELINE_WORKER_TYPE', 'madeline-ipc'); define('MADELINE_WORKER_TYPE', 'madeline-ipc');
} }
public static function removeBrokenIpc(string $session): void
{
info('Removing ipc sockets from sessions to fix startup' . PHP_EOL);
foreach (glob(ROOT_DIR . "/$session/*ipc") as $file) {
info("removing: $file");
unlink($file);
}
}
} }