*** empty log message ***
This commit is contained in:
parent
a282a51c4d
commit
922a591154
|
@ -837,7 +837,7 @@ struct torrent_handle
|
||||||
<p>The default constructor will initialize the handle to an invalid state. Which means you cannot
|
<p>The default constructor will initialize the handle to an invalid state. Which means you cannot
|
||||||
perform any operation on it, unless you first assign it a valid handle. If you try to perform
|
perform any operation on it, unless you first assign it a valid handle. If you try to perform
|
||||||
any operation on an uninitialized handle, it will throw <tt class="literal"><span class="pre">invalid_handle</span></tt>.</p>
|
any operation on an uninitialized handle, it will throw <tt class="literal"><span class="pre">invalid_handle</span></tt>.</p>
|
||||||
<p><em>TODO: document ``trackers()`` and ``replace_trackers()``</em></p>
|
<p><strong>TODO: document trackers() and replace_trackers()</strong></p>
|
||||||
<div class="section" id="save-path">
|
<div class="section" id="save-path">
|
||||||
<h2><a name="save-path">save_path()</a></h2>
|
<h2><a name="save-path">save_path()</a></h2>
|
||||||
<blockquote>
|
<blockquote>
|
||||||
|
|
|
@ -778,7 +778,7 @@ The default constructor will initialize the handle to an invalid state. Which me
|
||||||
perform any operation on it, unless you first assign it a valid handle. If you try to perform
|
perform any operation on it, unless you first assign it a valid handle. If you try to perform
|
||||||
any operation on an uninitialized handle, it will throw ``invalid_handle``.
|
any operation on an uninitialized handle, it will throw ``invalid_handle``.
|
||||||
|
|
||||||
*TODO: document ``trackers()`` and ``replace_trackers()``*
|
**TODO: document trackers() and replace_trackers()**
|
||||||
|
|
||||||
save_path()
|
save_path()
|
||||||
-----------
|
-----------
|
||||||
|
|
|
@ -350,9 +350,6 @@ namespace libtorrent
|
||||||
if (file_offset + read_bytes > file_iter->size)
|
if (file_offset + read_bytes > file_iter->size)
|
||||||
read_bytes = static_cast<int>(file_iter->size - file_offset);
|
read_bytes = static_cast<int>(file_iter->size - file_offset);
|
||||||
|
|
||||||
// TODO: this assert will be hit if a file has size 0
|
|
||||||
assert(read_bytes > 0);
|
|
||||||
|
|
||||||
size_type actual_read = in.read(buf + buf_pos, read_bytes);
|
size_type actual_read = in.read(buf + buf_pos, read_bytes);
|
||||||
|
|
||||||
if (read_bytes != actual_read)
|
if (read_bytes != actual_read)
|
||||||
|
|
|
@ -262,9 +262,9 @@ namespace libtorrent
|
||||||
, int interval)
|
, int interval)
|
||||||
{
|
{
|
||||||
m_failed_trackers = 0;
|
m_failed_trackers = 0;
|
||||||
// less than 60 seconds announce intervals
|
// less than 5 minutes announce intervals
|
||||||
// are insane.
|
// are insane.
|
||||||
if (interval < 60) interval = 60;
|
if (interval < 60 * 5) interval = 60 * 5;
|
||||||
|
|
||||||
m_last_working_tracker
|
m_last_working_tracker
|
||||||
= prioritize_tracker(m_currently_trying_tracker);
|
= prioritize_tracker(m_currently_trying_tracker);
|
||||||
|
|
Loading…
Reference in New Issue