Fix a programs bug if custom program folder is not exist.

This commit is contained in:
qianlifeng
2014-08-12 12:21:04 +08:00
parent 7926dd9aeb
commit 4121bbc772
3 changed files with 18 additions and 5 deletions

View File

@@ -105,8 +105,19 @@ namespace Wox.Helper
ThreadPool.QueueUserWorkItem(delegate
{
Exception exception = null;
try { action(); }
catch (Exception ex) { exception = ex; }
try
{
action();
}
catch (Exception ex)
{
exception = ex;
#if (DEBUG)
{
throw;
}
#endif
}
OnItemComplete(state, exception);
});
return this;