event/ServerSocket: fix AF_UNIX address in use error

bind fails with an "address already in use" error if the socket path
already exists.

This was broken by cbb595ba.
This commit is contained in:
Anthony DeRossi 2015-09-29 10:39:06 -07:00 committed by Max Kellermann
parent 84ab3ee3af
commit de332a16d1

View File

@ -431,6 +431,8 @@ ServerSocket::AddPath(AllocatedPath &&path, Error &error)
#ifdef HAVE_UN
(void)error;
RemoveFile(path);
AllocatedSocketAddress address;
address.SetLocal(path.c_str());