From b35f52367c1ba3db7dd4f352a7f4f5defa4ef779 Mon Sep 17 00:00:00 2001 From: dborth Date: Tue, 3 Feb 2009 08:32:48 +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 59faddc..5cc73d6 100644 --- a/source/ngc/networkop.cpp +++ b/source/ngc/networkop.cpp @@ -190,6 +190,7 @@ void CloseShare() if(networkShareInit) smbClose(); networkShareInit = false; + networkInit = false; // trigger a network reinit } /**************************************************************************** @@ -233,14 +234,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)