minor moving around of code

This commit is contained in:
arvidn 2015-11-06 00:38:42 -05:00
parent e6d7cb2d3f
commit ced0f74bf8
2 changed files with 13 additions and 13 deletions

View File

@ -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

View File

@ -701,9 +701,7 @@ namespace libtorrent
file_size = s.file_size;
file_time = s.mtime;
}
else
{
if (error == error_code(boost::system::errc::no_such_file_or_directory
else if (error == error_code(boost::system::errc::no_such_file_or_directory
, generic_category()))
{
m_stat_cache.set_noexist(i);
@ -716,7 +714,6 @@ namespace libtorrent
m_stat_cache.set_error(i);
}
}
}
fl.push_back(entry(entry::list_t));
entry::list_type& p = fl.back().list();
@ -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)
{