Skip to content

Commit

Permalink
prevent crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Garfonso committed May 24, 2024
1 parent a954f7b commit ef08d4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/WebSocketDevice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class WebSocketDevice extends Device {
ip: this.ip,
pin: this.pinDecrypted,
keepAlive: 5,
useTelnetForToken: this.pinDecrypted.toUpperCase() === 'TELNET',
useTelnetForToken: this.pinDecrypted?.toUpperCase() === 'TELNET',
log: console.debug
});
}
Expand Down

0 comments on commit ef08d4c

Please sign in to comment.