summaryrefslogtreecommitdiff
path: root/node/Node.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2014-02-07 09:13:08 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2014-02-07 09:13:08 -0800
commitd24b192f8c724662e1a8f93fd8e72d79dba04a86 (patch)
tree280842817b6d3095ba56ef49414343e998671d03 /node/Node.cpp
parent0442d7e2d66e54bfe2462aabf2362f3fecdd7b4c (diff)
downloadinfinitytier-d24b192f8c724662e1a8f93fd8e72d79dba04a86.tar.gz
infinitytier-d24b192f8c724662e1a8f93fd8e72d79dba04a86.zip
Remove old updates from updates.d on Node startup.
Diffstat (limited to 'node/Node.cpp')
-rw-r--r--node/Node.cpp1
1 files changed, 1 insertions, 0 deletions
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?)");
}