forked from premiere/premiere-libtorrent
fix typo in test_checking, introduced by recent error_code in torrent_status patch
This commit is contained in:
parent
ebdde0dfc8
commit
00090b8284
|
@ -130,7 +130,6 @@ namespace libtorrent
|
|||
error_code errc;
|
||||
int error_file;
|
||||
|
||||
|
||||
// special values for error_file to describe which file or component
|
||||
// encountered the error (``errc``).
|
||||
enum error_file_t {
|
||||
|
|
|
@ -144,7 +144,8 @@ namespace libtorrent
|
|||
{
|
||||
|
||||
torrent_status::torrent_status()
|
||||
: total_download(0)
|
||||
: error_file(torrent_status::error_file_none)
|
||||
, total_download(0)
|
||||
, total_upload(0)
|
||||
, total_payload_download(0)
|
||||
, total_payload_upload(0)
|
||||
|
|
|
@ -212,7 +212,7 @@ void test_checking(int flags = read_only_files)
|
|||
&& st.state != torrent_status::checking_resume_data)
|
||||
break;
|
||||
|
||||
if (!st.errc) break;
|
||||
if (st.errc) break;
|
||||
test_sleep(500);
|
||||
}
|
||||
if (flags & incomplete_files)
|
||||
|
@ -242,7 +242,7 @@ void test_checking(int flags = read_only_files)
|
|||
|
||||
st = tor1.status();
|
||||
TEST_CHECK(!st.is_seeding);
|
||||
TEST_CHECK(!st.errc);
|
||||
TEST_CHECK(st.errc);
|
||||
if (st.errc)
|
||||
fprintf(stderr, "error: %s\n", st.errc.message().c_str());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue