X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Futil.cc;h=45965385c6c9b4f5e4bdb9202be0671b2335f720;hb=21d3f3889ede9bd4b2c48424715e44ad2c405500;hp=a68496e94260bf90b5ab6bda607f709470d393a8;hpb=914a93ee4dd48583b057305f463bee3fb2254cc7;p=dcpomatic.git diff --git a/src/lib/util.cc b/src/lib/util.cc index a68496e94..45965385c 100644 --- a/src/lib/util.cc +++ b/src/lib/util.cc @@ -428,6 +428,7 @@ Socket::check () void Socket::connect (asio::ip::basic_resolver_entry const & endpoint, int timeout) { + _deadline.expires_from_now (posix_time::seconds (timeout)); system::error_code ec = asio::error::would_block; _socket.async_connect (endpoint, lambda::var(ec) = lambda::_1); do {