private void FileFlushTask(object state) { BlockContainer container = (BlockContainer)state; lock (pathLock) { blocksPendingSync.Remove(container); try { container.Flush(); } catch (IOException e) { Logger.Warning(String.Format("Sync error: {0}", e.Message)); // We log the warning, but otherwise ignore any IO Error on a // file synchronize. } } }