mirror of
https://github.com/dborth/vbagx.git
synced 2024-11-22 18:49:18 +01:00
trigger net reconnection on SMB failure
This commit is contained in:
parent
96e93b5841
commit
d1062098ab
@ -204,6 +204,7 @@ void CloseShare()
|
||||
if(networkShareInit)
|
||||
smbClose();
|
||||
networkShareInit = false;
|
||||
networkInit = false; // trigger a network reinit
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
@ -247,14 +248,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)
|
||||
|
Loading…
Reference in New Issue
Block a user