Skip to content

Commit

Permalink
Small fix in DopamineWindow
Browse files Browse the repository at this point in the history
  • Loading branch information
raphgodart committed Nov 18, 2017
1 parent 7501f61 commit 77620fd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Dopamine.Common/Controls/DopamineWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,10 @@ private void Deactivate()
System.Threading.Thread.Sleep(500);
Application.Current.Dispatcher.Invoke(() => this.Topmost = this.oldTopMost);

try
if (System.Threading.Thread.CurrentThread.IsAlive)
{
System.Threading.Thread.CurrentThread.Abort();
}
catch (System.Exception)
{
// This fails sometimes. We don't care about it.
}
}
}
}

0 comments on commit 77620fd

Please sign in to comment.