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()
|
||||
{
|
||||
#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);
|
||||
if (m_attached_to_torrent)
|
||||
{
|
||||
|
@ -2346,7 +2355,7 @@ namespace libtorrent
|
|||
|
||||
boost::posix_time::time_duration d;
|
||||
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
|
||||
// message or something else.
|
||||
|
|
|
@ -744,8 +744,16 @@ namespace libtorrent
|
|||
|
||||
bool torrent::move_storage(boost::filesystem::path const& save_path)
|
||||
{
|
||||
bool ret = m_storage->move_storage(save_path);
|
||||
m_save_path = m_storage->save_path();
|
||||
bool ret = true;
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue