Skip to content

Commit

Permalink
Against all odds of name clashes
Browse files Browse the repository at this point in the history
  • Loading branch information
synhershko committed Jun 29, 2012
1 parent 9fe230b commit 6782a16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/NAppUpdate.Framework/UpdateManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ public bool ApplyUpdates(bool relaunchApplication, bool updaterDoLogging, bool u
}

bool createdNew;
using (var _ = new Mutex(true, Config.UpdateProcessName, out createdNew))
using (var _ = new Mutex(true, Config.UpdateProcessName + "Mutex", out createdNew))
{
if (NauIpc.LaunchProcessAndSendDto(dto, info, Config.UpdateProcessName) == null)
return false;
Expand Down
2 changes: 1 addition & 1 deletion src/NAppUpdate.Updater/AppStart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ private static void Main()

// Make sure we start updating only once the application has completely terminated
bool createdNew;
using (var mutex = new Mutex(false, syncProcessName, out createdNew))
using (var mutex = new Mutex(false, syncProcessName + "Mutex", out createdNew))
{
try
{
Expand Down

0 comments on commit 6782a16

Please sign in to comment.