Просмотр исходного кода

Fix container monitor cleanup function

The intent here is clearly to clear both the timeout and the interval.
Eric Mc Sween 6 лет назад
Родитель
Сommit
a853950a99
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      services/clsi/app/js/DockerRunner.js

+ 2 - 2
services/clsi/app/js/DockerRunner.js

@@ -611,8 +611,8 @@ const DockerRunner = {
       containerMonitorTimeout = undefined
     }
     if (containerMonitorInterval) {
-      clearInterval(containerMonitorTimeout)
-      containerMonitorTimeout = undefined
+      clearInterval(containerMonitorInterval)
+      containerMonitorInterval = undefined
     }
   }
 }