aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartijn Kaijser <martijn@xbmc.org>2016-05-01 10:42:02 +0200
committerMartijn Kaijser <martijn@xbmc.org>2016-05-01 10:42:02 +0200
commit8b156394d5816166ca84c7eb07fbe7fff462b247 (patch)
treed6a776a575b49b0056ba6ebd10cfecfbc3fdf8ea
parent82038432f126d24d0e9e7db9edf8d522d99040bc (diff)
parentddb8061e04a59c3d14a30e88a69cf695f1000753 (diff)
Merge pull request #9696 from stefansaraev/skinsave
[skin] save skin settings early on exit
-rw-r--r--xbmc/Application.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/xbmc/Application.cpp b/xbmc/Application.cpp
index 2ce90c4bc8..f4c530d2fb 100644
--- a/xbmc/Application.cpp
+++ b/xbmc/Application.cpp
@@ -2797,6 +2797,13 @@ void CApplication::Stop(int exitCode)
else
CLog::Log(LOGNOTICE, "Not saving settings (settings.xml is not present)");
+ // kodi may crash or deadlock during exit (shutdown / reboot) due to
+ // either a bug in core or misbehaving addons. so try saving
+ // skin settings early
+ CLog::Log(LOGNOTICE, "Saving skin settings");
+ if (g_SkinInfo != nullptr)
+ g_SkinInfo->SaveSettings();
+
m_bStop = true;
m_AppFocused = false;
m_ExitCode = exitCode;