commit e1735fbc05662872732622dc2b7d926b23644577 parent 92d4ae1fda0e1e5d8b7161afaa3183d66f745bdc Author: cfillion <cfillion@users.noreply.github.com> Date: Wed, 16 Dec 2015 01:18:42 -0500 don't reset the timer every time a download is started Diffstat:
M | src/download.cpp | | | 4 | +++- |
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/download.cpp b/src/download.cpp @@ -130,8 +130,10 @@ void Download::RegisterStart() { WDL_MutexLock lock(&s_mutex); + if(!s_running) + plugin_register("timer", (void*)TimerTick); + s_running++; - plugin_register("timer", (void*)TimerTick); } void Download::MarkAsFinished(Download *dl)