mirror of
https://github.com/danog/TelegramApiServer.git
synced 2024-11-29 20:09:05 +01:00
Bump
This commit is contained in:
parent
8d321fec31
commit
b3d8cdd6a4
@ -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,
|
||||||
|
@ -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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user