forked from I2P_Developers/i2p.i2p
- Use new synchronized change-and-save-config methods
to eliminate races with ReadConfigJob
This commit is contained in:
@ -105,8 +105,7 @@ public class UnsignedUpdateHandler extends UpdateHandler {
|
||||
modtime = RFC822Date.parse822Date(lastmod);
|
||||
if (modtime <= 0)
|
||||
modtime = _context.clock().now();
|
||||
_context.router().setConfigSetting(PROP_LAST_UPDATE_TIME, "" + modtime);
|
||||
_context.router().saveConfig();
|
||||
_context.router().saveConfig(PROP_LAST_UPDATE_TIME, "" + modtime);
|
||||
if ("install".equals(policy)) {
|
||||
_log.log(Log.CRIT, "Update was downloaded, restarting to install it");
|
||||
updateStatus("<b>" + _("Update downloaded") + "</b><br>" + _("Restarting"));
|
||||
|
Reference in New Issue
Block a user