Sfoglia il codice sorgente

Fixed music not playing in case of brutal shutdown

Brendan Abolivier 8 anni fa
parent
commit
951f2676bf
Signed by: Brendan Abolivier <contact@brendanabolivier.com> GPG key ID: 8EF1500759F70623
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 5
    0
      welcomehome

+ 5
- 0
welcomehome Vedi File

@@ -117,6 +117,11 @@ init() {
117 117
     # Set volume to the right value
118 118
     set_volume $volume
119 119
 
120
+    # Removing lock file in case of ungraceful shutdown
121
+    if [ ! -f $lock_file ]; then
122
+        rm $lock_file
123
+    fi
124
+
120 125
     log "Initialisation complete"
121 126
 }
122 127