Possible fix of loop after Internet down?
This commit is contained in:
parent
fa89fc99a5
commit
e720e1e4c8
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue