[banshee] Mtp: Only unmount devices that are actually mounted
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] Mtp: Only unmount devices that are actually mounted
- Date: Mon, 28 Mar 2011 21:03:35 +0000 (UTC)
commit 6e6fd8c24c6bf8e247e6f3f0fa42c0ede49af07c
Author: Gabriel Burt <gabriel burt gmail com>
Date: Mon Mar 28 16:02:58 2011 -0500
Mtp: Only unmount devices that are actually mounted
.../Banshee.Dap.Mtp/Banshee.Dap.Mtp/MtpSource.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Dap/Banshee.Dap.Mtp/Banshee.Dap.Mtp/MtpSource.cs b/src/Dap/Banshee.Dap.Mtp/Banshee.Dap.Mtp/MtpSource.cs
index 5e7294e..a256eeb 100644
--- a/src/Dap/Banshee.Dap.Mtp/Banshee.Dap.Mtp/MtpSource.cs
+++ b/src/Dap/Banshee.Dap.Mtp/Banshee.Dap.Mtp/MtpSource.cs
@@ -95,7 +95,7 @@ namespace Banshee.Dap.Mtp
//if (v.BusNumber == busnum && v.DeviceNumber == devnum) {
if (v.DeviceNumber == devnum) {
// If gvfs-gphoto has it mounted, unmount it
- if (volume != null) {
+ if (volume != null && volume.IsMounted) {
volume.Unmount ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]