Commit 36ca69f8 authored by Per Cederqvist's avatar Per Cederqvist

Handle ConnectionRefusedError when starting wav2mp3d.

This typically means that the socket file is left, but the daemon
itself is no longer running.  Try to spawn a new one.
parent 485a7d44
......@@ -94,7 +94,7 @@ def get_daemon_connection():
try:
return multiprocessing.connection.Client(mp3wavcfg.socketpath,
'AF_UNIX')
except FileNotFoundError:
except (FileNotFoundError, ConnectionRefusedError):
pass
try:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment