From 91daecb5d99f6976b9be2997d84a8d8ff85ca51f Mon Sep 17 00:00:00 2001 From: Kostyantyn Ovechko Date: Thu, 17 Jun 2010 23:59:13 +0300 Subject: Add support for WHIRLPOOL, SHA512, MD5, CRC32 --- segget/distfile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'segget/distfile.cpp') 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]; -- cgit v1.2.3-65-gdbad