*** empty log message ***
This commit is contained in:
parent
54c1e58608
commit
5a15c8ebfb
|
@ -316,6 +316,11 @@ int main(int argc, char* argv[])
|
||||||
a = ses.pop_alert();
|
a = ses.pop_alert();
|
||||||
while (a.get())
|
while (a.get())
|
||||||
{
|
{
|
||||||
|
torrent_finished_alert* p = dynamic_cast<torrent_finished_alert*>(a.get());
|
||||||
|
if (p)
|
||||||
|
{
|
||||||
|
ses.set_upload_rate_limit(30 * 1024);
|
||||||
|
}
|
||||||
if (events.size() >= 10) events.pop_front();
|
if (events.size() >= 10) events.pop_front();
|
||||||
events.push_back(a->msg());
|
events.push_back(a->msg());
|
||||||
a = ses.pop_alert();
|
a = ses.pop_alert();
|
||||||
|
|
|
@ -161,6 +161,8 @@ namespace libtorrent
|
||||||
// to finish all pieces currently in the pipeline, and then
|
// to finish all pieces currently in the pipeline, and then
|
||||||
// abort the torrent.
|
// abort the torrent.
|
||||||
|
|
||||||
|
// TODO: add a max upload rate per torrent too.
|
||||||
|
|
||||||
// manually connect a peer
|
// manually connect a peer
|
||||||
void connect_peer(const address& adr) const;
|
void connect_peer(const address& adr) const;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue