diff --git a/daemon/main.cpp b/daemon/main.cpp index 7620ac0..76b0986 100644 --- a/daemon/main.cpp +++ b/daemon/main.cpp @@ -35,7 +35,7 @@ namespace po = boost::program_options; namespace postyle = boost::program_options::command_line_style; namespace logging = boost::log; -static std::string version("bondagit-1.5.1"); +static std::string version("bondagit-1.5.2"); static std::atomic terminate = false; void termination_handler(int signum) { diff --git a/daemon/rtsp_client.cpp b/daemon/rtsp_client.cpp index d08b302..ae323fb 100644 --- a/daemon/rtsp_client.cpp +++ b/daemon/rtsp_client.cpp @@ -133,6 +133,11 @@ std::pair RtspClient::process(RtspClient::Observer callback, try { BOOST_LOG_TRIVIAL(debug) << "rtsp_client:: connecting to " << "rtsp://" << address << ":" << port << path; +#if BOOST_VERSION < 106600 + s.expires_from_now(boost::posix_time::seconds(1)); +#else + s.expires_after(boost::asio::chrono::seconds(1)); +#endif s.connect(address, port.length() ? port : dft_port); if (!s || s.error()) { BOOST_LOG_TRIVIAL(warning)