4
0
mirror of https://github.com/AzuraCast/AzuraCast.git synced 2024-06-17 22:47:04 +00:00

Better handling of "needs restart" flagging for stations.

This commit is contained in:
Buster Neece 2019-03-01 18:34:06 -06:00
parent 28d2725ea3
commit 53e39746e6

View File

@ -391,7 +391,7 @@ class Station
$config[$cfg_key] = $cfg_val;
}
if ($this->frontend_config !== $config) {
if ($this->frontend_config != $config) {
$this->setNeedsRestart(true);
}
@ -451,7 +451,7 @@ class Station
$config[$cfg_key] = $cfg_val;
}
if ($this->backend_config !== $config) {
if ($this->backend_config != $config) {
$this->setNeedsRestart(true);
}
@ -797,6 +797,10 @@ class Station
*/
public function setEnableStreamers(bool $enable_streamers): void
{
if ($this->enable_streamers !== $enable_streamers) {
$this->setNeedsRestart(true);
}
$this->enable_streamers = $enable_streamers;
}