diff --git a/ontrack-extension-github/src/main/resources/static/extension/github/module.js b/ontrack-extension-github/src/main/resources/static/extension/github/module.js
index <HASH>..<HASH> 100644
--- a/ontrack-extension-github/src/main/resources/static/extension/github/module.js
+++ b/ontrack-extension-github/src/main/resources/static/extension/github/module.js
@@ -105,11 +105,12 @@ angular.module('ontrack.extension.github', [
         $scope.toggleAutoReload = () => {
             $scope.autoReload = !$scope.autoReload;
             if ($scope.autoReload) {
+                localStorage.setItem(autoReloadKey, $scope.autoReload);
                 registerReload();
             } else {
+                localStorage.removeItem(autoReloadKey);
                 otTaskService.stop(taskName);
             }
-            localStorage.setItem(autoReloadKey, $scope.autoReload);
         };
 
         $scope.topPayloads = () => {
#<I> Persistence of the auto reload being disabled