Fix Linux compiler issues.

This commit is contained in:
Jonathan Naylor 2016-06-14 06:36:40 +01:00
parent 5818e8ad6a
commit 0b2702314f
3 changed files with 4 additions and 3 deletions

View file

@ -226,7 +226,6 @@ bool CAPRSWriterThread::connect()
m_socket.close();
return false;
}
length = m_socket.readLine(serverResponse, APRS_TIMEOUT);
if (length == 0) {
@ -234,6 +233,7 @@ bool CAPRSWriterThread::connect()
m_socket.close();
return false;
}
if (length < 0) {
LogError("Error when reading from the APRS server");
m_socket.close();