From d56468b4ecd01e4170c87e4c0e942a6a38b83e3f Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Fri, 15 Dec 2023 09:59:56 -0500 Subject: [PATCH] Fix launch of auto update shortly after launch Regression from: https://github.com/gorhill/uBlock/commit/bd7ce41224 --- src/js/start.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/js/start.js b/src/js/start.js index 60186bd30..5762619b6 100644 --- a/src/js/start.js +++ b/src/js/start.js @@ -474,7 +474,11 @@ lz4Codec.relinquish(); // https://github.com/chrisaljoudi/uBlock/issues/184 // Check for updates not too far in the future. io.addObserver(µb.assetObserver.bind(µb)); -µb.scheduleAssetUpdater(); +µb.scheduleAssetUpdater({ + updateDelay: µb.userSettings.autoUpdate + ? µb.hiddenSettings.autoUpdateDelayAfterLaunch * 1000 + : 0 +}); // Force an update of the context menu according to the currently // active tab.