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_factory.cc

    r1049 r1058  
    196196  if (!rtorrent->has_key_string("custom5")) rtorrent->insert_key("custom5", std::string()); 
    197197 
    198   // Move to 'rtorrent'. 
    199   rpc::call_command("d.set_connection_leech", m_variables["connection_leech"], rpc::make_target(download)); 
    200   rpc::call_command("d.set_connection_seed",  m_variables["connection_seed"], rpc::make_target(download)); 
    201  
    202198  rpc::call_command("d.set_uploads_max",      rpc::call_command_void("get_max_uploads"), rpc::make_target(download)); 
    203199  rpc::call_command("d.set_peers_min",        rpc::call_command_void("get_min_peers"), rpc::make_target(download)); 
     
    353349 
    354350  rtorrent->insert_preserve_copy("ignore_commands", (int64_t)0); 
    355 } 
    356  
    357 } 
     351 
     352  rtorrent->insert_preserve_type("connection_leech", m_variables["connection_leech"]); 
     353  rtorrent->insert_preserve_type("connection_seed", m_variables["connection_seed"]); 
     354} 
     355 
     356}