mirror of
https://github.com/JS8Call-improved/JS8Call-improved
synced 2026-08-13 17:47:36 -04:00
Ensure proper timer thread affinity
Since the APRS client object will be moved to another thread, ensure that its timer has a parent of the APRS client object, so that the timer is properly handled when the thread affinity changes.
This commit is contained in:
parent
42cc885941
commit
cbb02474c1
1 changed files with 5 additions and 2 deletions
|
|
@ -8,8 +8,11 @@
|
|||
|
||||
const int PACKET_TIMEOUT_SECONDS = 300;
|
||||
|
||||
APRSISClient::APRSISClient(QString host, quint16 port, QObject *parent):
|
||||
QTcpSocket(parent)
|
||||
APRSISClient::APRSISClient(QString const host,
|
||||
quint16 const port,
|
||||
QObject * parent)
|
||||
: QTcpSocket{parent},
|
||||
m_timer {this}
|
||||
{
|
||||
setServer(host, port);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue