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

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():
return multiprocessing.connection.Client(mp3wavcfg.socketpath,
except FileNotFoundError:
except (FileNotFoundError, ConnectionRefusedError):
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