forked from premiere/premiere-libtorrent
minor moving around of code
This commit is contained in:
parent
e6d7cb2d3f
commit
ced0f74bf8
|
@ -38,7 +38,7 @@ addons:
|
|||
- g++-4.8
|
||||
|
||||
before_install:
|
||||
- git submodule update --init --recursive --depth=1
|
||||
- git submodule update --init --recursive
|
||||
- if [ $TRAVIS_OS_NAME == "osx" ]; then brew update > /dev/null && brew install --quiet ccache boost-build boost-python; fi
|
||||
|
||||
# disable simulations on OSX for now. It hangs on travis
|
||||
|
|
|
@ -701,20 +701,17 @@ namespace libtorrent
|
|||
file_size = s.file_size;
|
||||
file_time = s.mtime;
|
||||
}
|
||||
else if (error == error_code(boost::system::errc::no_such_file_or_directory
|
||||
, generic_category()))
|
||||
{
|
||||
m_stat_cache.set_noexist(i);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (error == error_code(boost::system::errc::no_such_file_or_directory
|
||||
, generic_category()))
|
||||
{
|
||||
m_stat_cache.set_noexist(i);
|
||||
}
|
||||
else
|
||||
{
|
||||
ec.ec = error;
|
||||
ec.file = i;
|
||||
ec.operation = storage_error::stat;
|
||||
m_stat_cache.set_error(i);
|
||||
}
|
||||
ec.ec = error;
|
||||
ec.file = i;
|
||||
ec.operation = storage_error::stat;
|
||||
m_stat_cache.set_error(i);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -924,6 +921,9 @@ namespace libtorrent
|
|||
}
|
||||
}
|
||||
|
||||
// TODO: 2 we probably need to do this unconditionally in this function.
|
||||
// Even if the resume data file appears stale, we need to create these
|
||||
// hard links, right?
|
||||
#ifndef TORRENT_DISABLE_MUTABLE_TORRENTS
|
||||
if (links)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue