trigger net reconnection on SMB failure

This commit is contained in:
dborth 2009-02-03 08:33:51 +00:00
parent 96e93b5841
commit d1062098ab

View File

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