From 4b13ff574763fd49e839039c5b8356462214bbd8 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Tue, 30 Jan 2018 10:24:38 +0100 Subject: [PATCH] Fixed sockets. Whoops. --- lib/socket.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/socket.cpp b/lib/socket.cpp index c2e2e395..be029bb6 100644 --- a/lib/socket.cpp +++ b/lib/socket.cpp @@ -475,6 +475,7 @@ std::string Socket::Connection::getError(){ /// \param address String containing the location of the Unix socket to connect to. /// \param nonblock Whether the socket should be nonblocking. False by default. Socket::Connection::Connection(std::string address, bool nonblock){ + skipCount = 0; pipes[0] = -1; pipes[1] = -1; sock = socket(PF_UNIX, SOCK_STREAM, 0); @@ -510,6 +511,7 @@ Socket::Connection::Connection(std::string address, bool nonblock){ /// \param port String containing the port to connect to. /// \param nonblock Whether the socket should be nonblocking. Socket::Connection::Connection(std::string host, int port, bool nonblock){ + skipCount = 0; pipes[0] = -1; pipes[1] = -1; struct addrinfo *result, *rp, hints;