Merge pull request #222 from juribeparada/master
Possible fix of loop after Internet down (DMR)?
This commit is contained in:
commit
4cfd82431c
|
@ -559,7 +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");
|
||||||
close();
|
m_socket.close();
|
||||||
open();
|
open();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue