aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--device.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/device.cc b/device.cc
index 940a654..ddbfe85 100644
--- a/device.cc
+++ b/device.cc
@@ -130,6 +130,7 @@ int Device::recv(void *packet) {
Loglevel::DEBUG);
break;
}
+ _reconnect();
LOG("Retrying... " + std::to_string(retry_count),
Loglevel::DEBUG);
std::this_thread::sleep_for(m_retry_timeout);