forked from premiere/premiere-libtorrent
*** empty log message ***
This commit is contained in:
parent
5a25be2825
commit
344d5b80c8
|
@ -297,6 +297,15 @@ namespace libtorrent
|
||||||
|
|
||||||
peer_connection::~peer_connection()
|
peer_connection::~peer_connection()
|
||||||
{
|
{
|
||||||
|
#ifndef NDEBUG
|
||||||
|
using namespace boost::posix_time;
|
||||||
|
if (m_logger)
|
||||||
|
{
|
||||||
|
(*m_logger) << to_simple_string(second_clock::universal_time())
|
||||||
|
<< " *** CONNECTION CLOSED\n";
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
m_selector.remove(m_socket);
|
m_selector.remove(m_socket);
|
||||||
if (m_attached_to_torrent)
|
if (m_attached_to_torrent)
|
||||||
{
|
{
|
||||||
|
@ -2346,7 +2355,7 @@ namespace libtorrent
|
||||||
|
|
||||||
boost::posix_time::time_duration d;
|
boost::posix_time::time_duration d;
|
||||||
d = second_clock::universal_time() - m_last_sent;
|
d = second_clock::universal_time() - m_last_sent;
|
||||||
if (d.seconds() < m_timeout / 2) return;
|
if (d.total_seconds() < m_timeout / 2) return;
|
||||||
|
|
||||||
// we must either send a keep-alive
|
// we must either send a keep-alive
|
||||||
// message or something else.
|
// message or something else.
|
||||||
|
|
|
@ -744,8 +744,16 @@ namespace libtorrent
|
||||||
|
|
||||||
bool torrent::move_storage(boost::filesystem::path const& save_path)
|
bool torrent::move_storage(boost::filesystem::path const& save_path)
|
||||||
{
|
{
|
||||||
bool ret = m_storage->move_storage(save_path);
|
bool ret = true;
|
||||||
m_save_path = m_storage->save_path();
|
if (m_storage.get())
|
||||||
|
{
|
||||||
|
ret = m_storage->move_storage(save_path);
|
||||||
|
m_save_path = m_storage->save_path();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
m_save_path = save_path;
|
||||||
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue