Commit a5b7b420 authored by Matt Tucker's avatar Matt Tucker Committed by matt

One more improvement -- write the update time even if there is an error to prevent a fast loop.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@4703 b35dd754-fafc-0310-a699-88a17e54d16e
parent 1c30e8de
......@@ -109,7 +109,11 @@ public class UpdateManager extends BasicModule {
checkForServerUpdate(true);
// Refresh list of available plugins and check for plugin updates
checkForPluginsUpdates(true);
// Keep track of the last time we checked for updates
}
catch (Exception e) {
Log.error("Error checking for updates", e);
}
// Keep track of the last time we checked for updates.
long now = System.currentTimeMillis();
JiveGlobals.setProperty("update.lastCheck", String.valueOf(now));
// As an extra precaution, make sure that that the value
......@@ -122,10 +126,6 @@ public class UpdateManager extends BasicModule {
return;
}
}
catch (Exception e) {
Log.error("Error checking for updates", e);
}
}
}
}
catch (InterruptedException e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment