summaryrefslogtreecommitdiff
path: root/Ivy/Ivy.cs
diff options
context:
space:
mode:
authorfcolin2011-06-09 13:28:49 +0000
committerfcolin2011-06-09 13:28:49 +0000
commit29fe7904418bf26ace2771593bd695764f681df0 (patch)
tree20961b59f1d30591ac2652d89ebf450dd4c5c7b7 /Ivy/Ivy.cs
parent69c704021293b9e7c78409dcb4c3de08f01241a8 (diff)
downloadivy-csharp-29fe7904418bf26ace2771593bd695764f681df0.zip
ivy-csharp-29fe7904418bf26ace2771593bd695764f681df0.tar.gz
ivy-csharp-29fe7904418bf26ace2771593bd695764f681df0.tar.bz2
ivy-csharp-29fe7904418bf26ace2771593bd695764f681df0.tar.xz
correct bug when current context not found
Diffstat (limited to 'Ivy/Ivy.cs')
-rw-r--r--Ivy/Ivy.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Ivy/Ivy.cs b/Ivy/Ivy.cs
index 9b0674f..af9e67e 100644
--- a/Ivy/Ivy.cs
+++ b/Ivy/Ivy.cs
@@ -277,6 +277,8 @@ namespace IvyBus
sent_messageFilter = new Collection<string>();
#if (!PocketPC)
syncContext = SynchronizationContext.Current;
+ if (syncContext == null)
+ synchronous = false;
debugProtocol = Properties.Settings.Default.IvyDebug;
protocolVersion = Properties.Settings.Default.IvyProtocolVersion;
#endif