From d1062098ab24cc46994646e217ffd9e690d4cfcc Mon Sep 17 00:00:00 2001 From: dborth Date: Tue, 3 Feb 2009 08:33:51 +0000 Subject: [PATCH] trigger net reconnection on SMB failure --- source/ngc/networkop.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/ngc/networkop.cpp b/source/ngc/networkop.cpp index 59d7d96..c92d3f9 100644 --- a/source/ngc/networkop.cpp +++ b/source/ngc/networkop.cpp @@ -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)