Possible fix of loop after Internet down?

This commit is contained in:
Andy CA6JAU 2016-11-18 00:45:10 -03:00
parent fa89fc99a5
commit e720e1e4c8

View file

@ -559,6 +559,7 @@ bool CDMRNetwork::write(const unsigned char* data, unsigned int length)
bool ret = m_socket.write(data, length, m_address, m_port);
if (!ret) {
LogError("DMR, Socket has failed when writing data to the master, retrying connection");
m_socket.close();
open();
return false;
}