[banshee] MassStorage: Ignore unmounted volumes
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] MassStorage: Ignore unmounted volumes
- Date: Tue, 29 Mar 2011 15:17:24 +0000 (UTC)
commit 76a1a4275d38655aa2413e7fe4943b99916f6183
Author: Gabriel Burt <gabriel burt gmail com>
Date: Mon Mar 28 16:10:53 2011 -0500
MassStorage: Ignore unmounted volumes
.../Banshee.Dap.MassStorage/MassStorageSource.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/MassStorageSource.cs b/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/MassStorageSource.cs
index b669a6b..3be5b9e 100644
--- a/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/MassStorageSource.cs
+++ b/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/MassStorageSource.cs
@@ -62,7 +62,7 @@ namespace Banshee.Dap.MassStorage
base.DeviceInitialize (device);
volume = device as IVolume;
- if (volume == null || (usb_device = volume.ResolveRootUsbDevice ()) == null) {
+ if (volume == null || !volume.IsMounted || (usb_device = volume.ResolveRootUsbDevice ()) == null) {
throw new InvalidDeviceException ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]