moved audioclient stop to dtor

This commit is contained in:
amer cerkic 2019-06-20 15:10:21 -07:00
parent 77d91fce33
commit 1218f7e014
2 changed files with 4 additions and 2 deletions

View file

@ -2775,7 +2775,6 @@ void Application::cleanupBeforeQuit() {
// destroy Audio so it and its threads have a chance to go down safely
// this must happen after QML, as there are unexplained audio crashes originating in qtwebengine
QMetaObject::invokeMethod(DependencyManager::get<AudioClient>().data(), "stop");
DependencyManager::destroy<AudioClient>();
DependencyManager::destroy<AudioScriptingInterface>();

View file

@ -1,4 +1,4 @@
//
tttttt//
// AudioClient.cpp
// interface/src
//
@ -375,6 +375,9 @@ AudioClient::AudioClient() :
}
AudioClient::~AudioClient() {
stop();
if (_codec && _encoder) {
_codec->releaseEncoder(_encoder);
_encoder = nullptr;