mirror of https://github.com/g4klx/MMDVMHost
Possible fix of loop after Internet down?
This commit is contained in:
parent
6ed5038cc0
commit
fa89fc99a5
|
|
@ -559,7 +559,6 @@ bool CDMRNetwork::write(const unsigned char* data, unsigned int length)
|
||||||
bool ret = m_socket.write(data, length, m_address, m_port);
|
bool ret = m_socket.write(data, length, m_address, m_port);
|
||||||
if (!ret) {
|
if (!ret) {
|
||||||
LogError("DMR, Socket has failed when writing data to the master, retrying connection");
|
LogError("DMR, Socket has failed when writing data to the master, retrying connection");
|
||||||
close();
|
|
||||||
open();
|
open();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue