浏览代码

Fixed music not playing in case of brutal shutdown

父节点
当前提交
951f2676bf
签署人:: Brendan Abolivier <contact@brendanabolivier.com> GPG 密钥 ID: 8EF1500759F70623
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5
    0
      welcomehome

+ 5
- 0
welcomehome 查看文件

@@ -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