We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b000f7e commit 55ab4caCopy full SHA for 55ab4ca
1 file changed
src/connectionhealth.cpp
@@ -268,14 +268,14 @@ void ConnectionHealth::applicationStateChanged(Qt::ApplicationState state) {
268
#else
269
switch (state) {
270
case Qt::ApplicationState::ApplicationActive:
271
- if (!m_suspended) return;
272
-
273
- m_suspended = false;
274
- logger.debug() << "Resuming connection check from suspension";
275
- ConnectionStatus st;
276
- st.m_ipv4Address = m_deviceAddress;
277
- st.m_ipv6Address = m_currentGateway
278
- startActive(st);
+ if (m_suspended) {
+ m_suspended = false;
+ logger.debug() << "Resuming connection check from suspension";
+ ControllerStatus st;
+ st.m_ipv4Address = m_deviceAddress;
+ st.m_ipv4Gateway = m_currentGateway
+ startActive(st);
+ }
279
break;
280
281
case Qt::ApplicationState::ApplicationSuspended:
0 commit comments