bind fails with an "address already in use" error if the socket path
already exists.
This was broken by cbb595ba.
---
src/event/ServerSocket.cxx | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/event/ServerSocket.cxx b/src/event/ServerSocket.cxx
index 7e279da..f82c533 100644
--- a/src/event/ServerSocket.cxx
+++ b/src/event/ServerSocket.cxx
@@ -431,6 +431,8 @@ ServerSocket::AddPath(AllocatedPath &&path, Error &error)
#ifdef HAVE_UN
(void)error;
+ RemoveFile(path);
+
AllocatedSocketAddress address;
address.SetLocal(path.c_str());
--
2.4.9
_______________________________________________
mpd-devel mailing list
[email protected]
http://mailman.blarg.de/listinfo/mpd-devel