Merge branch 'patch-2' of git://github.com/HyShai/MPD

Closes #343
This commit is contained in:
Max Kellermann
2019-01-04 19:04:02 +01:00
2 changed files with 3 additions and 1 deletions

View File

@@ -102,7 +102,7 @@ PoorSocketPair(int fd[2])
assert (fd != nullptr);
UniqueSocketDescriptor listen_socket;
if (!listen_socket.CreateNonBlock(AF_INET, SOCK_STREAM, IPPROTO_TCP))
if (!listen_socket.Create(AF_INET, SOCK_STREAM, IPPROTO_TCP))
throw MakeSocketError("Failed to create socket");
if (!listen_socket.Bind(IPv4Address(IPv4Address::Loopback(), 0)))