summaryrefslogtreecommitdiff
path: root/thunar-volman/tvm-block-device.c
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis@xfce.org>2010-07-20 11:21:25 +0200
committerJannis Pohlmann <jannis@xfce.org>2010-07-25 19:42:29 +0200
commitccafc02e8cce0bc104af60012d8c2c493ed5327e (patch)
tree96f31e79264ecf620ea4fa7e5e95b86fbd75c0ed /thunar-volman/tvm-block-device.c
parent81c12834783b92f0784dca25a82277ee5afb20bc (diff)
downloadthunar-volman-ccafc02e8cce0bc104af60012d8c2c493ed5327e.tar.gz
Properly exit when the CD/DVD drive has no media.
Diffstat (limited to 'thunar-volman/tvm-block-device.c')
-rw-r--r--thunar-volman/tvm-block-device.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/thunar-volman/tvm-block-device.c b/thunar-volman/tvm-block-device.c
index 5d919a0..d111884 100644
--- a/thunar-volman/tvm-block-device.c
+++ b/thunar-volman/tvm-block-device.c
@@ -328,7 +328,7 @@ tvm_block_device_added (TvmContext *context)
guint64 audio_tracks;
g_return_if_fail (context != NULL);
-
+
/* collect general device information */
devtype = g_udev_device_get_devtype (context->device);
id_type = g_udev_device_get_property (context->device, "ID_TYPE");
@@ -371,6 +371,11 @@ tvm_block_device_added (TvmContext *context)
tvm_block_device_mount (context);
}
}
+ else
+ {
+ /* finish processing the device */
+ tvm_device_handler_finished (context);
+ }
}
else if (is_partition || is_volume)
{