Skip to content

Commit fe802b4

Browse files
committed
Ups
1 parent 29bc95d commit fe802b4

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

MultiRoomRadioManager.py

+8-3
Original file line numberDiff line numberDiff line change
@@ -292,11 +292,16 @@ def _checkFifo(self):
292292
shell=True
293293
).decode('utf-8').replace('\n','')
294294

295-
if int(_output) > 0:
295+
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:
296301
removeFifoCmd ="rm /dev/shm/*fifo"
297302
subprocess.call(removeFifoCmd, shell=True)
298-
restartSnapserveerCmd ="sudo systemctl restart snapserver"
299-
subprocess.call(restartSnapserveerCmd, shell=True)
303+
restartSnapserverCmd ="sudo systemctl restart snapserver"
304+
subprocess.call(restartSnapserverCmd, shell=True)
300305

301306
except subprocess.CalledProcessError as e:
302307
raise e

0 commit comments

Comments
 (0)