diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-12-22 20:42:09 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-12-22 20:42:09 +0000 |
| commit | 21d3f3889ede9bd4b2c48424715e44ad2c405500 (patch) | |
| tree | 720382f460c5e6139f7aedc9f9106ef9a6cb3675 /src/lib/util.cc | |
| parent | 9de1a9516f1fad4cc669cb7622b8f2828eddcbf9 (diff) | |
Add -Wextra and fix the warnings.
Diffstat (limited to 'src/lib/util.cc')
| -rw-r--r-- | src/lib/util.cc | 1 |
1 files changed, 1 insertions, 0 deletions
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<asio::ip::tcp> 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 { |
