diff options
author | Kostyantyn Ovechko <fastinetserver@gmail.com> | 2010-06-17 23:59:13 +0300 |
---|---|---|
committer | Kostyantyn Ovechko <fastinetserver@gmail.com> | 2010-06-17 23:59:13 +0300 |
commit | 91daecb5d99f6976b9be2997d84a8d8ff85ca51f (patch) | |
tree | a8535c49cd13b3aa12cb6067e52c0e32f4890dfe /segget/distfile.cpp | |
parent | Add checking checksums for downloaded distfiles. (diff) | |
download | idfetch-91daecb5d99f6976b9be2997d84a8d8ff85ca51f.tar.gz idfetch-91daecb5d99f6976b9be2997d84a8d8ff85ca51f.tar.bz2 idfetch-91daecb5d99f6976b9be2997d84a8d8ff85ca51f.zip |
Add support for WHIRLPOOL, SHA512, MD5, CRC32
Diffstat (limited to 'segget/distfile.cpp')
-rw-r--r-- | segget/distfile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/segget/distfile.cpp b/segget/distfile.cpp index 30ae4c7..a6d78ce 100644 --- a/segget/distfile.cpp +++ b/segget/distfile.cpp @@ -142,11 +142,11 @@ int Tdistfile::provide_segment(CURLM* cm, uint connection_num, uint seg_num){ return 1; } else{ + dn_segments[seg_num].prepare_for_connection(cm, connection_num, num, url_list[url_num]); + connection_array[connection_num].segment=&dn_segments[seg_num]; url_num++; if (url_num >= url_count) url_num=0; - dn_segments[seg_num].prepare_for_connection(cm, connection_num, num, url_list[url_num]); - connection_array[connection_num].segment=&dn_segments[seg_num]; return 0; } //segment=dn_segments[seg_num]; |