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