From 24ea640397216dccd0ca4f4e471cbb760a2da8b9 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 20 Aug 2019 13:55:37 +0200 Subject: [PATCH] Kill the testworker to save memory usage --- www/common/cryptpad-common.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index 3f0cf8af9..c18ba7411 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -1368,10 +1368,12 @@ define([ errEv.preventDefault(); errEv.stopPropagation(); noWorker = true; + worker.terminate(); w(); }; worker.onmessage = function (ev) { if (ev.data === "OK") { + worker.terminate(); w(); } };