From b3d8cdd6a4430c1b750c123cb88b8a9eece96c25 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Wed, 26 Jun 2024 22:28:58 +0200 Subject: [PATCH] Bump --- server.php | 3 --- src/Migrations/StartUpFixes.php | 9 --------- 2 files changed, 12 deletions(-) diff --git a/server.php b/server.php index 3f20601..78fbaa1 100644 --- a/server.php +++ b/server.php @@ -83,9 +83,6 @@ foreach ($options['session'] as $session) { } StartUpFixes::fix(); -foreach ($sessions as $session) { - StartUpFixes::removeBrokenIpc($session); -} new TelegramApiServer\Server\Server( $options, diff --git a/src/Migrations/StartUpFixes.php b/src/Migrations/StartUpFixes.php index 8b93fa8..bbd78e7 100644 --- a/src/Migrations/StartUpFixes.php +++ b/src/Migrations/StartUpFixes.php @@ -8,13 +8,4 @@ class StartUpFixes { 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); - } - } } \ No newline at end of file