diff options
author | Kai Sommerfeld <kai.sommerfeld@gmx.com> | 2018-03-13 11:58:37 +0100 |
---|---|---|
committer | Kai Sommerfeld <kai.sommerfeld@gmx.com> | 2018-03-13 11:58:37 +0100 |
commit | cdfdaa75801dee9f3102e6bffae4b4cf54d2ebf6 (patch) | |
tree | e35698d9580b78a7a5d2efd831b5f6f04beabe1c | |
parent | 701da00117fb8301769d0edee11dc5bac3c59a1c (diff) |
[peripherals] Make CPeripherals::Initialise survive getting called when it is already initialisid. Fixes crash on profile switch after c5f5579
-rw-r--r-- | xbmc/peripherals/Peripherals.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xbmc/peripherals/Peripherals.cpp b/xbmc/peripherals/Peripherals.cpp index ffcac0d839..af50dbcb46 100644 --- a/xbmc/peripherals/Peripherals.cpp +++ b/xbmc/peripherals/Peripherals.cpp @@ -106,6 +106,8 @@ CPeripherals::~CPeripherals() void CPeripherals::Initialise() { + Clear(); + #if !defined(TARGET_DARWIN_IOS) CDirectory::Create("special://profile/peripheral_data"); |