mirror of
https://github.com/overte-org/overte.git
synced 2025-08-24 18:07:02 +02:00
Shut down DDE when Interface shuts down
This commit is contained in:
parent
00f5469fa8
commit
1eb5716ab7
2 changed files with 3 additions and 3 deletions
|
@ -610,6 +610,8 @@ void Application::cleanupBeforeQuit() {
|
|||
|
||||
// destroy the AudioClient so it and its thread have a chance to go down safely
|
||||
DependencyManager::destroy<AudioClient>();
|
||||
|
||||
DependencyManager::destroy<DdeFaceTracker>();
|
||||
}
|
||||
|
||||
Application::~Application() {
|
||||
|
|
|
@ -166,9 +166,7 @@ DdeFaceTracker::DdeFaceTracker(const QHostAddress& host, quint16 serverPort, qui
|
|||
}
|
||||
|
||||
DdeFaceTracker::~DdeFaceTracker() {
|
||||
if (_udpSocket.isOpen()) {
|
||||
_udpSocket.close();
|
||||
}
|
||||
setEnabled(false);
|
||||
}
|
||||
|
||||
void DdeFaceTracker::setEnabled(bool enabled) {
|
||||
|
|
Loading…
Reference in a new issue