Skip to content

Commit e0d4e5a

Browse files
committed
Fix ConnectionHealth compile fail on MZ_MOBILE
1 parent b000f7e commit e0d4e5a

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/connectionhealth.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -268,14 +268,14 @@ void ConnectionHealth::applicationStateChanged(Qt::ApplicationState state) {
268268
#else
269269
switch (state) {
270270
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);
271+
if (m_suspended) {
272+
m_suspended = false;
273+
logger.debug() << "Resuming connection check from suspension";
274+
ControllerStatus st;
275+
st.m_ipv4Address = m_deviceAddress;
276+
st.m_ipv4Gateway = m_currentGateway;
277+
startActive(st);
278+
}
279279
break;
280280

281281
case Qt::ApplicationState::ApplicationSuspended:

0 commit comments

Comments
 (0)