Skip to content

Commit

Permalink
Update DelegateQueue.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
ragnarek81997 committed Sep 25, 2018
1 parent 390ed10 commit 7dcd4a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WkHtmlToXSharp/DelegateQueue/DelegateQueue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ private void InitializeDelegateQueue(string name)
{
// Create thread for processing delegates.
delegateThread = new Thread(DelegateProcedure);
delegateThread.SetApartmentState(ApartmentState.STA);
delegateThread.TrySetApartmentState(ApartmentState.STA);

lock(lockObject)
{
Expand Down

0 comments on commit 7dcd4a0

Please sign in to comment.