MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / stopConnection

Method stopConnection

src/core/FreeDvClient.cpp:91–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91void FreeDvClient::stopConnection()
92{
93 m_intentionalDisconnect = true;
94 if (m_pingTimer) m_pingTimer->stop();
95 if (m_reconnectTimer) m_reconnectTimer->stop();
96
97 if (m_ws && m_ws->state() != QAbstractSocket::UnconnectedState)
98 m_ws->close();
99
100 m_connected.store(false);
101 emit stationsCleared();
102 m_stations.clear();
103 emit stopped();
104}
105
106// ── WebSocket slots ─────────────────────────────────────────────────────
107

Callers 3

closeEventMethod · 0.80
buildMenuBarMethod · 0.80

Calls 4

stopMethod · 0.45
stateMethod · 0.45
closeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected