mirror of
https://github.com/Hypfer/Valetudo.git
synced 2025-10-26 11:27:27 +00:00
fix: Gracefully handle iw process not spawning
This commit is contained in:
parent
5b66c35331
commit
0086080d1b
@ -36,8 +36,8 @@ class LinuxWifiConfigurationCapability extends WifiConfigurationCapability {
|
||||
|
||||
:-)
|
||||
*/
|
||||
const iwOutput = spawnSync("iw", ["dev", this.networkInterface, "link"]).stdout.toString();
|
||||
const wifiStatus = this.parseIwStdout(iwOutput);
|
||||
const iwOutput = spawnSync("iw", ["dev", this.networkInterface, "link"]);
|
||||
const wifiStatus = this.parseIwStdout(iwOutput.stdout?.toString() || "");
|
||||
|
||||
//IPs are not part of the iw output
|
||||
if (wifiStatus.state === ValetudoWifiStatus.STATE.CONNECTED) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user