summaryrefslogtreecommitdiffstats
path: root/mono/Connection.cs
diff options
context:
space:
mode:
authorJohn (J5) Palmieri <johnp@redhat.com>2006-04-19 16:02:24 +0000
committerJohn (J5) Palmieri <johnp@redhat.com>2006-04-19 16:02:24 +0000
commit3213532f305ca9aad647e84c45ecd7784b22a333 (patch)
tree0fd25dcacea77ee3136ce4166d1abfba23c40624 /mono/Connection.cs
parent8e3ad4c75806f3c1456be8c3097899799ab16c47 (diff)
2006-04-19 John (J5) Palmieri <johnp@redhat.com>
* mono/Connection.cs, mono/Message.cs: Check Target type Patch from Aaron Bockover (abockover at novell.com)
Diffstat (limited to 'mono/Connection.cs')
-rw-r--r--mono/Connection.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/mono/Connection.cs b/mono/Connection.cs
index af0764db..5413c1c8 100644
--- a/mono/Connection.cs
+++ b/mono/Connection.cs
@@ -116,7 +116,7 @@ namespace DBus
// Maybe we already have a Connection object associated with
// this rawConnection then return it
IntPtr rawThis = dbus_connection_get_data (rawConnection, slot);
- if (rawThis != IntPtr.Zero) {
+ if (rawThis != IntPtr.Zero && ((GCHandle)rawThis).Target == typeof(DBus.Connection)) {
return (DBus.Connection) ((GCHandle)rawThis).Target;
}
}