Skip to content

Commit

Permalink
Fixed a potential crash when learning RF data
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Rhodes committed Jan 1, 2020
1 parent 2ef6d01 commit dd7cbcf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions helpers/learnRFData.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ const stop = (log, device) => {
if (currentDevice) currentDevice.cancelLearn();

setTimeout(() => {
if (!closeClient) return;

closeClient();
closeClient = null;
isClosingClient = false;
Expand Down

0 comments on commit dd7cbcf

Please sign in to comment.