diff --git a/src/tracker_manager.cpp b/src/tracker_manager.cpp index 01c1dc173..ae22318ca 100644 --- a/src/tracker_manager.cpp +++ b/src/tracker_manager.cpp @@ -280,7 +280,7 @@ namespace libtorrent { boost::shared_ptr con = boost::make_shared( - ios, *this, req, c, auth + boost::ref(ios), boost::ref(*this), boost::cref(req), c, auth #if TORRENT_USE_I2P , &m_ses.m_i2p_conn #endif @@ -293,7 +293,7 @@ namespace libtorrent { boost::shared_ptr con = boost::make_shared( - ios, *this, req , c); + boost::ref(ios), boost::ref(*this), boost::cref(req) , c); m_udp_conns[con->transaction_id()] = con; con->start(); return;