4
0
mirror of https://github.com/AzuraCast/AzuraCast.git synced 2024-06-14 21:26:37 +00:00

Prevent "BAD_NAME" exception from failing entire profile page.

This commit is contained in:
Buster "Silver Eagle" Neece 2021-01-20 01:54:03 -06:00
parent 8b466ce82e
commit b6656a35f1
No known key found for this signature in database
GPG Key ID: 6D9E12FF03411F4E

View File

@ -117,11 +117,16 @@ abstract class AbstractAdapter
}
$program_name = $this->getProgramName($station);
try {
$process = $this->supervisor->getProcess($program_name);
return ($process instanceof Process)
? $process->isRunning()
: false;
} catch (Fault\BadNameException $e) {
return false;
}
}
/**