mirror of
https://github.com/JS8Call-improved/JS8Call-improved
synced 2026-08-13 17:47:36 -04:00
Prevent connecting to APRSIS server if there's no host or port provided
This commit is contained in:
parent
3b847a58c6
commit
32fcabd2af
1 changed files with 7 additions and 0 deletions
|
|
@ -242,6 +242,13 @@ void APRSISClient::processQueue(bool disconnect){
|
|||
// don't process queue if there's nothing to process
|
||||
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)
|
||||
// 2. login (and read)
|
||||
// 3. for each raw frame in queue, send
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue