summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CSharp/Ivy/Ivy/Ivy.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/CSharp/Ivy/Ivy/Ivy.cs b/CSharp/Ivy/Ivy/Ivy.cs
index d17a9e2..30b5592 100644
--- a/CSharp/Ivy/Ivy/Ivy.cs
+++ b/CSharp/Ivy/Ivy/Ivy.cs
@@ -226,7 +226,13 @@ namespace IvyBus
internal CultureInfo culture = new CultureInfo("en-us");
// for synchronous event
- private Control syncControl = null;
+ private Control syncControl = null;
+
+ public Control SyncControl
+ {
+ get { return syncControl; }
+ set { syncControl = value; }
+ }
public Ivy()
{
clients = new List<IvyClient>();
@@ -738,7 +744,7 @@ namespace IvyBus
{
throw new IvyException("(callCallback) Not regexp matching id " + key);
}
- if ( syncControl != null && syncControl.Created )
+ if ( IsSynchronous() )
syncControl.Invoke(bind.callback, new object[] { client, arg });
else bind.callback(client, arg);
}