diff options
author | Matthew Johnson <mjj29@adonis.trinhall.cam.ac.uk> | 2009-04-29 18:23:28 +0100 |
---|---|---|
committer | Matthew Johnson <mjj29@adonis.trinhall.cam.ac.uk> | 2009-04-29 18:23:28 +0100 |
commit | 21d7a2cce11b24153932d6c24e2f80c82d75eafb (patch) | |
tree | fd880cc39b560d65acb8ee6ee927aead09f32236 /org | |
parent | 76512cce5f37a5f124db8812760c933c0f1cc48e (diff) |
fix bug in disconnected handling
Diffstat (limited to 'org')
-rw-r--r-- | org/freedesktop/dbus/Error.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/org/freedesktop/dbus/Error.java b/org/freedesktop/dbus/Error.java index 16e1126..9db1e07 100644 --- a/org/freedesktop/dbus/Error.java +++ b/org/freedesktop/dbus/Error.java @@ -17,6 +17,7 @@ import java.util.Vector; import org.freedesktop.dbus.exceptions.DBusException; import org.freedesktop.dbus.exceptions.DBusExecutionException; import org.freedesktop.dbus.exceptions.MessageFormatException; +import org.freedesktop.dbus.exceptions.NotConnected; import cx.ath.matthew.debug.Debug; @@ -79,6 +80,7 @@ public class Error extends Message @SuppressWarnings("unchecked") private static Class<? extends DBusExecutionException> createExceptionClass(String name) { + if (name == "org.freedesktop.DBus.Local.Disconnected") return NotConnected.class; Class<? extends DBusExecutionException> c = null; do { try { |