hobbyquaker / lgtv2

Control LG WebOS TV using node.js :tv:
MIT License
334 stars 44 forks source link

No need to create a new directory if keyFile is specified. #42

Open merdok opened 2 years ago

merdok commented 2 years ago

Hi,

i noticed that even when the keyFile is specified a new lgtv2 directory was created, which is a little bit unnecessary and might cause some issues if for some reason the home directory is not writable, in that case even when the keyFile was specified the code would crash. If keyFile is specified it should straight be used and no directory should be created.