From 29fe7904418bf26ace2771593bd695764f681df0 Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 9 Jun 2011 13:28:49 +0000 Subject: correct bug when current context not found --- Ivy/Ivy.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Ivy') 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(); #if (!PocketPC) syncContext = SynchronizationContext.Current; + if (syncContext == null) + synchronous = false; debugProtocol = Properties.Settings.Default.IvyDebug; protocolVersion = Properties.Settings.Default.IvyProtocolVersion; #endif -- cgit v1.1