Skip to content

Commit

Permalink
增加字典載入Timeout時間到10秒
Browse files Browse the repository at this point in the history
  • Loading branch information
flier268 committed Mar 12, 2019
1 parent e1c2004 commit 8111cd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ConvertZZ/Moudle/ConvertString.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static string Convert(string origin, int ToChinese, int VocabularyCorrect
if (String.IsNullOrWhiteSpace(origin)) return origin;
if (!App.DicLoaded)
{
System.Threading.SpinWait.SpinUntil(() => App.DicLoaded, 3000);
System.Threading.SpinWait.SpinUntil(() => App.DicLoaded, 10000);
if (!App.DicLoaded)
throw new Exception("詞彙修正的Dictionary載入失敗");
}
Expand Down

0 comments on commit 8111cd7

Please sign in to comment.