We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29bc95d commit fe802b4Copy full SHA for fe802b4
MultiRoomRadioManager.py
@@ -292,11 +292,16 @@ def _checkFifo(self):
292
shell=True
293
).decode('utf-8').replace('\n','')
294
295
- if int(_output) > 0:
+ if _output == "ls: cannot access '/dev/shm/snapfifo': No such file or directory":
296
+ mkfifoCmd ="mkfifo /dev/shm/snapfifo -m666"
297
+ subprocess.call(mkfifoCmd, shell=True)
298
+ return
299
+
300
+ elif int(_output) > 0:
301
removeFifoCmd ="rm /dev/shm/*fifo"
302
subprocess.call(removeFifoCmd, shell=True)
- restartSnapserveerCmd ="sudo systemctl restart snapserver"
- subprocess.call(restartSnapserveerCmd, shell=True)
303
+ restartSnapserverCmd ="sudo systemctl restart snapserver"
304
+ subprocess.call(restartSnapserverCmd, shell=True)
305
306
except subprocess.CalledProcessError as e:
307
raise e
0 commit comments