Simplify the UDP socket handling.

This commit is contained in:
Jonathan Naylor
2024-01-29 16:59:34 +00:00
parent 17bd4d8902
commit fe9564295d
4 changed files with 101 additions and 144 deletions

View File

@@ -344,7 +344,7 @@ void CDMRDirectNetwork::clock(unsigned int ms)
if (m_retryTimer.isRunning() && m_retryTimer.hasExpired()) {
switch (m_status) {
case WAITING_CONNECT:
if (m_socket.open(m_addr.ss_family)) {
if (m_socket.open(m_addr)) {
if (writeLogin()) {
m_status = WAITING_LOGIN;
}