trigger net reconnection on SMB failure

This commit is contained in:
dborth 2009-02-03 08:32:48 +00:00
parent 06a1d2998d
commit b35f52367c

View File

@ -190,6 +190,7 @@ void CloseShare()
if(networkShareInit)
smbClose();
networkShareInit = false;
networkInit = false; // trigger a network reinit
}
/****************************************************************************
@ -233,14 +234,14 @@ ConnectShare (bool silent)
return false;
}
if(unmountRequired[METHOD_SMB])
CloseShare();
if(!networkInit)
InitializeNetwork(silent);
if(networkInit)
{
if(unmountRequired[METHOD_SMB])
CloseShare();
if(!networkShareInit)
{
if(!silent)