diff options
author | Jannis Pohlmann <jannis@xfce.org> | 2010-07-20 11:21:25 +0200 |
---|---|---|
committer | Jannis Pohlmann <jannis@xfce.org> | 2010-07-25 19:42:29 +0200 |
commit | ccafc02e8cce0bc104af60012d8c2c493ed5327e (patch) | |
tree | 96f31e79264ecf620ea4fa7e5e95b86fbd75c0ed /thunar-volman/tvm-block-device.c | |
parent | 81c12834783b92f0784dca25a82277ee5afb20bc (diff) | |
download | thunar-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.c | 7 |
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) { |