/// <summary> /// Uns the mount. /// </summary> private void UnMount() { lock (_syncLock) { if (_pfmFileMount != null) { Logger.Info("Unmounting {0}", IsoPath); _pfmFileMount.Cancel(); _pfmFileMount.Detach(); _isoManager.OnUnmount(this); try { _pfmFileMount.Dispose(); } catch (Exception ex) { Logger.ErrorException("Error disposing file mount for {0}", ex, IsoPath); } _pfmFileMount = null; } } }
/// <summary> /// Uns the mount. /// </summary> private void UnMount() { if (_pfmFileMount != null) { Logger.Info("Unmounting {0}", IsoPath); _pfmFileMount.Cancel(); _pfmFileMount.Detach(); _isoManager.OnUnmount(this); _pfmFileMount.Dispose(); _pfmFileMount = null; } }