Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[nfs] - fix excessive calls to mount_getexports - only call it when the

hostname changes (as it was intended in the first place) by not clearing
the list whenever the path changes
  • Loading branch information...
commit c4a7afd61365993dfacf478f521503c8e2e83bcd 1 parent fa2681d
@Memphiz Memphiz authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 xbmc/filesystem/NFSFile.cpp
View
4 xbmc/filesystem/NFSFile.cpp
@@ -123,9 +123,11 @@ bool CNfsConnection::HandleDyLoad()
void CNfsConnection::clearMembers()
{
+ // NOTE - DON'T CLEAR m_exportList HERE!
+ // splitUrlIntoExportAndPath checks for m_exportList.empty()
+ // and would query the server in an excessive unwanted fashion
m_exportPath.clear();
m_hostName.clear();
- m_exportList.clear();
m_writeChunkSize = 0;
m_readChunkSize = 0;
m_pNfsContext = NULL;
Please sign in to comment.
Something went wrong with that request. Please try again.