Skip to content

Commit

Permalink
Missing locking in touchlink factoryResetFirst (Koenkk#308)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
peterbb authored Feb 14, 2021
1 parent 14ff0cb commit e0a0ab0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/controller/touchlink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ class Touchlink {
}

public async factoryResetFirst(): Promise<boolean> {
this.lock(true);
let done = false;

try {
Expand Down

0 comments on commit e0a0ab0

Please sign in to comment.