From e0a0ab0b47285ba0acf8ab4d9bb46fbc7ae83acd Mon Sep 17 00:00:00 2001 From: Peter Brottveit Bock Date: Sun, 14 Feb 2021 11:55:14 +0100 Subject: [PATCH] Missing locking in touchlink factoryResetFirst (#308) There seems to be a missing lock in the beginning of factoryResetFirst. All the other methods in this class locks then releases, except this one, which only releases. --- src/controller/touchlink.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/controller/touchlink.ts b/src/controller/touchlink.ts index a3e917d0d3cba..129464d8501af 100644 --- a/src/controller/touchlink.ts +++ b/src/controller/touchlink.ts @@ -99,6 +99,7 @@ class Touchlink { } public async factoryResetFirst(): Promise { + this.lock(true); let done = false; try {