diff --git a/src/AudacityApp.cpp b/src/AudacityApp.cpp index 0a368b37d..996c66c6f 100644 --- a/src/AudacityApp.cpp +++ b/src/AudacityApp.cpp @@ -2236,6 +2236,10 @@ int AudacityApp::OnExit() DeinitFFT(); +#ifdef HAS_NETWORKING + audacity::network_manager::NetworkManager::GetInstance().Terminate(); +#endif + AudioIO::Deinit(); MenuTable::DestroyRegistry(); @@ -2243,10 +2247,6 @@ int AudacityApp::OnExit() // Terminate the PluginManager (must be done before deleting the locale) PluginManager::Get().Terminate(); -#ifdef HAS_NETWORKING - audacity::network_manager::NetworkManager::GetInstance().Terminate(); -#endif - return 0; }