Skip to content

Commit

Permalink
Gave the application's Mutex a better name.
Browse files Browse the repository at this point in the history
  • Loading branch information
GlitchedPolygons committed Jul 2, 2019
1 parent 7495223 commit 8a7af1e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion GlitchedEpistle.Client.Windows/App.xaml.cs
Expand Up @@ -61,9 +61,11 @@ public partial class App : Application
/// </summary>
private readonly IMethodQ methodQ = new MethodQ();

private static Mutex mutex;

private void App_OnStartup(object sender, StartupEventArgs e)
{
var mutex = new Mutex(true, Assembly.GetCallingAssembly().GetName().Name, out bool newInstance);
mutex = new Mutex(true, $"GlitchedEpistle_{Version}", out bool newInstance);

if (!newInstance)
{
Expand Down

0 comments on commit 8a7af1e

Please sign in to comment.