mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-11-28 05:24:21 +01:00
trigger net reconnection on SMB failure
This commit is contained in:
parent
06a1d2998d
commit
b35f52367c
@ -190,6 +190,7 @@ void CloseShare()
|
|||||||
if(networkShareInit)
|
if(networkShareInit)
|
||||||
smbClose();
|
smbClose();
|
||||||
networkShareInit = false;
|
networkShareInit = false;
|
||||||
|
networkInit = false; // trigger a network reinit
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
@ -233,14 +234,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)
|
||||||
|
Loading…
Reference in New Issue
Block a user