@ -269,10 +269,7 @@ namespace MediaBrowser.Server.Implementations.IO
Logger . ErrorException ( "Error in Directory watcher for: " + dw . Path , ex ) ;
if ( ex . Message . Contains ( "network name is no longer available" ) )
{
//Network either dropped or, we are coming out of sleep and it hasn't reconnected yet - wait and retry
Logger . Warn ( "Network connection lost - will retry..." ) ;
var retries = 0 ;
var success = false ;
while ( ! success & & retries < 10 )
@ -296,19 +293,6 @@ namespace MediaBrowser.Server.Implementations.IO
Logger . Warn ( "Unable to access network. Giving up." ) ;
DisposeWatcher ( dw ) ;
}
}
else
{
if ( ! ex . Message . Contains ( "BIOS command limit" ) )
{
Logger . Info ( "Attempting to re-start watcher." ) ;
dw . EnableRaisingEvents = false ;
dw . EnableRaisingEvents = true ;
}
}
}
/// <summary>