summaryrefslogtreecommitdiff
path: root/dev-java/dbus-java/files/dbus-java-2.6-disconnectfix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/dbus-java/files/dbus-java-2.6-disconnectfix.patch')
-rw-r--r--dev-java/dbus-java/files/dbus-java-2.6-disconnectfix.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/dev-java/dbus-java/files/dbus-java-2.6-disconnectfix.patch b/dev-java/dbus-java/files/dbus-java-2.6-disconnectfix.patch
new file mode 100644
index 00000000000..73825676ddb
--- /dev/null
+++ b/dev-java/dbus-java/files/dbus-java-2.6-disconnectfix.patch
@@ -0,0 +1,21 @@
+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 {
+