aboutsummaryrefslogtreecommitdiff
path: root/dpi
diff options
context:
space:
mode:
Diffstat (limited to 'dpi')
-rw-r--r--dpi/downloads.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/dpi/downloads.cc b/dpi/downloads.cc
index 7f1aa18f..1a70d235 100644
--- a/dpi/downloads.cc
+++ b/dpi/downloads.cc
@@ -318,6 +318,8 @@ DLItem::DLItem(const char *full_filename, const char *url, DLAction action)
// Init value. Reset later, upon the first data bytes arrival
init_time = time(NULL);
+ twosec_time = onesec_time = init_time;
+
// BUG:? test a URL with ' inside.
/* escape "'" character for the shell. Is it necessary? */
esc_url = Escape_uri_str(url, "'");