From 29375e7953041766de7c44ea5574cf80d5916e41 Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Tue, 28 Feb 2017 22:50:45 +0100 Subject: Do reconnect also on receiving failure Signed-off-by: Szczepan Zalega --- device.cc | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.2.3