mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
Merge pull request #2469 from verybadsoldier/nfsdeinit
deinitialize NFS before going to suspend
This commit is contained in:
commit
c8b376dbc5
@ -1,7 +1,7 @@
|
||||
diff -rupN xbmc-upstream/xbmc/Application.cpp xbmc-vbs/xbmc/Application.cpp
|
||||
--- xbmc-upstream/xbmc/Application.cpp 2013-06-12 00:24:40.486262597 +0200
|
||||
+++ xbmc-vbs/xbmc/Application.cpp 2013-06-12 01:23:11.948400122 +0200
|
||||
@@ -5907,3 +5907,33 @@ CPerformanceStats &CApplication::GetPerf
|
||||
@@ -5907,3 +5907,37 @@ CPerformanceStats &CApplication::GetPerf
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -12,6 +12,10 @@ diff -rupN xbmc-upstream/xbmc/Application.cpp xbmc-vbs/xbmc/Application.cpp
|
||||
+#if defined(HAS_FILESYSTEM_SMB) && !defined(_WIN32)
|
||||
+ smb.Deinit();
|
||||
+#endif
|
||||
+
|
||||
+#if defined(HAS_FILESYSTEM_NFS)
|
||||
+ gNfsConnection.Deinit();
|
||||
+#endif
|
||||
+}
|
||||
+
|
||||
+void CApplication::StopAddonServices()
|
||||
@ -59,6 +63,18 @@ diff -rupN xbmc-upstream/xbmc/filesystem/SmbFile.cpp xbmc-vbs/xbmc/filesystem/Sm
|
||||
if (!m_context)
|
||||
{
|
||||
#ifdef TARGET_POSIX
|
||||
diff -rupN xbmc-upstream/xbmc/filesystem/NFSFile.cpp xbmc-vbs/xbmc/filesystem/NFSFile.cpp
|
||||
--- xbmc-upstream/xbmc/filesystem/NFSFile.cpp 2013-07-12 22:18:51.062605410 +0200
|
||||
+++ xbmc-vbs/xbmc/filesystem/NFSFile.cpp 2013-07-12 22:19:27.069861082 +0200
|
||||
@@ -308,6 +308,8 @@
|
||||
|
||||
void CNfsConnection::Deinit()
|
||||
{
|
||||
+ CLog::Log(LOGNOTICE,"CNfsConnection::Deinit");
|
||||
+
|
||||
if(m_pNfsContext && m_pLibNfs->IsLoaded())
|
||||
{
|
||||
destroyOpenContexts();
|
||||
diff -rupN xbmc-upstream/xbmc/powermanagement/PowerManager.cpp xbmc-vbs/xbmc/powermanagement/PowerManager.cpp
|
||||
--- xbmc-upstream/xbmc/powermanagement/PowerManager.cpp 2013-06-12 00:24:41.634276292 +0200
|
||||
+++ xbmc-vbs/xbmc/powermanagement/PowerManager.cpp 2013-06-12 01:15:32.166859998 +0200
|
Loading…
x
Reference in New Issue
Block a user