fix(network): Let module fail silently
The network module should not terminate the application on failure Closes jaagr/lemonbuddy#81
This commit is contained in:
parent
fcd30c5320
commit
6f286055c5
@ -65,16 +65,11 @@ namespace modules {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get an intstance of the network interface
|
// Get an intstance of the network interface
|
||||||
try {
|
|
||||||
if (net::is_wireless_interface(m_interface)) {
|
if (net::is_wireless_interface(m_interface)) {
|
||||||
m_wireless_network = make_unique<net::wireless_network>(m_interface);
|
m_wireless_network = make_unique<net::wireless_network>(m_interface);
|
||||||
} else {
|
} else {
|
||||||
m_wired_network = make_unique<net::wired_network>(m_interface);
|
m_wired_network = make_unique<net::wired_network>(m_interface);
|
||||||
}
|
}
|
||||||
} catch (net::network_error& e) {
|
|
||||||
m_log.err("%s: %s", name(), e.what());
|
|
||||||
std::exit(EXIT_FAILURE);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void start() {
|
void start() {
|
||||||
|
Loading…
Reference in New Issue
Block a user