mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-07 20:17:04 +03:00
fix no reboot on squeezelite connection loss
This commit is contained in:
@@ -66,7 +66,7 @@ static void squeezelite_thread(void *arg){
|
|||||||
|
|
||||||
cmd_send_messaging("cfg-audio-tmpl",ret > 1 ? MESSAGING_ERROR : MESSAGING_WARNING,"squeezelite exited with error code %d\n", ret);
|
cmd_send_messaging("cfg-audio-tmpl",ret > 1 ? MESSAGING_ERROR : MESSAGING_WARNING,"squeezelite exited with error code %d\n", ret);
|
||||||
|
|
||||||
if (ret == 1) {
|
if (ret <= 1) {
|
||||||
int wait = 60;
|
int wait = 60;
|
||||||
wait_for_commit();
|
wait_for_commit();
|
||||||
cmd_send_messaging("cfg-audio-tmpl",MESSAGING_ERROR,"Rebooting in %d sec\n", wait);
|
cmd_send_messaging("cfg-audio-tmpl",MESSAGING_ERROR,"Rebooting in %d sec\n", wait);
|
||||||
|
|||||||
Reference in New Issue
Block a user