mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-23 00:35:53 +08:00
Possible fix of loop after Internet down?
This commit is contained in:
@@ -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);
|
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");
|
||||||
|
m_socket.close();
|
||||||
open();
|
open();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user