kopia lustrzana https://gitlab.com/eliggett/wfview
Attempt to call rig destructor on exit, and remove windows specfic _sleep()
rodzic
0d75363214
commit
65f5486c5b
|
@ -50,7 +50,7 @@ udpHandler::~udpHandler()
|
|||
SendPacketDisconnect();
|
||||
|
||||
}
|
||||
_sleep(100);
|
||||
//_sleep(100);
|
||||
udp->close();
|
||||
delete udp;
|
||||
qDebug() << "Closing udpHandler";
|
||||
|
@ -396,7 +396,7 @@ udpSerial::~udpSerial()
|
|||
qDebug() << "Closing udpSerial";
|
||||
SendPacketOpenClose(true);
|
||||
SendPacketDisconnect();
|
||||
_sleep(100);
|
||||
//_sleep(100);
|
||||
udp->close();
|
||||
delete udp;
|
||||
}
|
||||
|
@ -626,7 +626,7 @@ udpAudio::~udpAudio()
|
|||
{
|
||||
qDebug() << "Closing udpAudio";
|
||||
SendPacketDisconnect();
|
||||
_sleep(100);
|
||||
//_sleep(100);
|
||||
|
||||
udp->close();
|
||||
delete udp;
|
||||
|
|
|
@ -355,7 +355,9 @@ wfmain::wfmain(const QString serialPortCL, const QString hostCL, QWidget *parent
|
|||
wfmain::~wfmain()
|
||||
{
|
||||
#ifdef Q_OS_WIN // Prevent crash on exit in Windows.
|
||||
delete rig;
|
||||
rigThread->quit();
|
||||
rigThread->wait();
|
||||
#endif
|
||||
delete ui;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue