From d24b192f8c724662e1a8f93fd8e72d79dba04a86 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Fri, 7 Feb 2014 09:13:08 -0800 Subject: Remove old updates from updates.d on Node startup. --- node/Node.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'node/Node.cpp') diff --git a/node/Node.cpp b/node/Node.cpp index fe3407be..23ec01de 100644 --- a/node/Node.cpp +++ b/node/Node.cpp @@ -461,6 +461,7 @@ Node::ReasonForTermination Node::run() #ifdef ZT_AUTO_UPDATE if (ZT_DEFAULTS.updateLatestNfoURL.length()) { _r->updater = new SoftwareUpdater(_r); + _r->updater->cleanOldUpdates(); // clean out updates.d on startup } else { LOG("WARNING: unable to enable software updates: latest .nfo URL from ZT_DEFAULTS is empty (does this platform actually support software updates?)"); } -- cgit v1.2.3