Closed lordbah closed 6 years ago
This behavior never happened to me but hardware-dependent programs are not very determinist. I have planned to rework a significant part of the library tomorrow to take account of another user needs so I will add the try/catch.
Thx for your advice and do not hesitate to propose other improvements.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Frequently on a Windows 7 system the scan method bombs the node.exe process. The netsh output gets truncated (reason unknown), from what I've seen always after the Encryption line for some network. The parser then chokes
To avoid the crash I had to edit windows-scan.js and inside scanWifi() put a try/catch around most of the work, have the catch set err, and send err in the final callback instead of null (in a successful parse, the value of err is null). I could not find any way to catch this error with the released code.
Then in my callback if err is set I sleep for 20 seconds and call scan again, and it works.