Skip to content

Commit

Permalink
Addresses #79 and #82 by correcting a preflight check for launch status
Browse files Browse the repository at this point in the history
  • Loading branch information
i8beef committed Feb 15, 2022
1 parent 7f97160 commit 71c8ec5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion castv2-sender.js
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ module.exports = function(RED) {
let castV2App = node.getCommandApp(command);

// If no active receiver, launch and try again
if (!node.receiver || !node.adapter || node.receiver.APP_ID !== castV2App.APP_ID) {
if (!node.receiver || !node.adapter || !(node.receiver instanceof castV2App)) {
node.launching = true;

return node.clientNode.launchAsync(castV2App)
Expand Down

0 comments on commit 71c8ec5

Please sign in to comment.