From 7eb1f61080c737d7fd06fca5e5bd525afa258b04 Mon Sep 17 00:00:00 2001
From: patrick96
Date: Mon, 16 Apr 2018 22:19:01 +0200
Subject: [PATCH] fix(net): Mark not connected on querying failure
Fixes #1163
---
src/modules/network.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/modules/network.cpp b/src/modules/network.cpp
index ebfddc57..bec6269a 100644
--- a/src/modules/network.cpp
+++ b/src/modules/network.cpp
@@ -86,6 +86,7 @@ namespace modules {
if (!network->query(m_accumulate)) {
m_log.warn("%s: Failed to query interface '%s'", name(), m_interface);
+ m_connected = false;
return false;
}