trigger net reconnection on SMB failure

This commit is contained in:
dborth 2009-02-03 08:33:23 +00:00
parent 0961309f6b
commit 399b36963d

View File

@ -202,6 +202,7 @@ void CloseShare()
if(networkShareInit)
smbClose();
networkShareInit = false;
networkInit = false; // trigger a network reinit
}
/****************************************************************************
@ -245,14 +246,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)