Show
Ignore:
Timestamp:
05/05/08 15:16:26 (4 years ago)
Author:
rakshasa
Message:

* Initial seeding support added. Patch by Josef Drexler.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/rtorrent/src/core/download_list.cc

    r1051 r1058  
    399399    rpc::call_command("d.set_state_counter", rpc::call_command_value("d.get_state_counter", rpc::make_target(download)), rpc::make_target(download)); 
    400400 
     401    // If initial seeding is complete, don't try it again when restarting. 
     402    if (download->is_done()) 
     403      rpc::call_command("d.set_connection_seed", rpc::call_command_void("d.get_connection_current", rpc::make_target(download)), rpc::make_target(download)); 
     404 
    401405    // Save the state after all the slots, etc have been called so we 
    402406    // include the modifications they may make.