checked return of deactivateDuckingAll 87/318287/1
authordyamy-lee <dyamy.lee@samsung.com>
Thu, 26 Sep 2024 10:49:46 +0000 (19:49 +0900)
committerdyamy-lee <dyamy.lee@samsung.com>
Thu, 26 Sep 2024 10:50:54 +0000 (19:50 +0900)
When BackgroundVolume Object destructor called, if deactivateDuckingAll is failed, it trys one more time.
In that case, previous it didn't check the result, but now, it checks the result as log.

Change-Id: Idef650ddbda17ff96c92547fda7f671974afd8ca

server/BackgroundVolume.cpp

index 69542cf280304460801893e1c727a129c8091ce3..9c6ebb997195fddc62c2104dd0f1eee8976d6fb9 100644 (file)
@@ -64,7 +64,8 @@ BackgroundVolume::~BackgroundVolume()
 
        if (false == deactivateDuckingAll()) {
                SLOG(LOG_WARN, tts_tag(), "[BackgroundVolume] Unknown ducking deactivation failure. One last trial");
-               deactivateDuckingAll();
+               bool ret = deactivateDuckingAll();
+               SLOG(LOG_WARN, tts_tag(), "[BackgroundVolume] Checked the result of trying to deactivateDuckingAll() once more. (%d)", ret);
        }
 
        if (nullptr != mPostponedModifyTimer) {