Skip to content
This repository has been archived by the owner on Dec 24, 2024. It is now read-only.

Commit

Permalink
FIX: delay de-intializing vfs until after scripts are done
Browse files Browse the repository at this point in the history
smb access from scripts after smb.Deinit() -> crash
  • Loading branch information
koying committed Nov 27, 2016
1 parent 1d09825 commit 0390d07
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions xbmc/Application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3014,14 +3014,6 @@ void CApplication::Stop(int exitCode)
g_RarManager.ClearCache(true);
#endif

#ifdef HAS_FILESYSTEM_SFTP
CSFTPSessionManager::DisconnectAllSessions();
#endif

#if defined(TARGET_POSIX) && defined(HAS_FILESYSTEM_SMB)
smb.Deinit();
#endif

CLog::Log(LOGNOTICE, "unload skin");
UnloadSkin();

Expand All @@ -3044,6 +3036,14 @@ void CApplication::Stop(int exitCode)
// unloading
CScriptInvocationManager::GetInstance().Uninitialize();

#ifdef HAS_FILESYSTEM_SFTP
CSFTPSessionManager::DisconnectAllSessions();
#endif

#if defined(TARGET_POSIX) && defined(HAS_FILESYSTEM_SMB)
smb.Deinit();
#endif

g_Windowing.DestroyRenderSystem();
g_Windowing.DestroyWindow();
g_Windowing.DestroyWindowSystem();
Expand Down

0 comments on commit 0390d07

Please sign in to comment.