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:
parent
84ab3ee3af
commit
de332a16d1
@ -431,6 +431,8 @@ ServerSocket::AddPath(AllocatedPath &&path, Error &error)
|
||||
#ifdef HAVE_UN
|
||||
(void)error;
|
||||
|
||||
RemoveFile(path);
|
||||
|
||||
AllocatedSocketAddress address;
|
||||
address.SetLocal(path.c_str());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user