fix(net): Mark not connected on querying failure

Fixes #1163
This commit is contained in:
patrick96 2018-04-16 22:19:01 +02:00 committed by Patrick Ziegler
parent 4dfa4079be
commit 7eb1f61080

View File

@ -86,6 +86,7 @@ namespace modules {
if (!network->query(m_accumulate)) { if (!network->query(m_accumulate)) {
m_log.warn("%s: Failed to query interface '%s'", name(), m_interface); m_log.warn("%s: Failed to query interface '%s'", name(), m_interface);
m_connected = false;
return false; return false;
} }