Prevent connecting to APRSIS server if there's no host or port provided
This commit is contained in:
parent
3b847a58c6
commit
32fcabd2af
@ -242,6 +242,13 @@ void APRSISClient::processQueue(bool disconnect){
|
|||||||
// don't process queue if there's nothing to process
|
// don't process queue if there's nothing to process
|
||||||
if(m_frameQueue.isEmpty()) return;
|
if(m_frameQueue.isEmpty()) return;
|
||||||
|
|
||||||
|
// don't process queue if there's no host
|
||||||
|
if(m_host.isEmpty() || m_port == 0){
|
||||||
|
// no host, so let's clear the queue and exit
|
||||||
|
m_frameQueue.clear();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// 1. connect (and read)
|
// 1. connect (and read)
|
||||||
// 2. login (and read)
|
// 2. login (and read)
|
||||||
// 3. for each raw frame in queue, send
|
// 3. for each raw frame in queue, send
|
||||||
|
Loading…
Reference in New Issue
Block a user