node-keytar
node-keytar copied to clipboard
Network adaptor disconnected makes keytar unresponsive
Hi,
I'm on 4.2.1 of node keytar and am using it inside electron (v1.8.6)
I'm coming across a strange issue where if I disconnect my wifi/ethernet cable, calling
keytar.getPassword makes the function take between 10-15 seconds to return and locks up my app.
This happens on both Windows and Mac.
Whenever I re-plug my ethernet cable in or turn on the Wifi, the call to getPassword behaves normally.
I've tested this by simulating a bad network connection using Xcode's Network Link Conditioner and can confirm it's nothing to do with actual connectivity, but is due to whether the actual network adaptor is plugged in or not.
Any ideas what might be causing this?
Thanks