WIP maintenances
This commit is contained in:
+3
-3
@@ -19,8 +19,8 @@ namespace CMS_Client
|
||||
{
|
||||
public static class Program
|
||||
{
|
||||
//Set the Mutef of GUID
|
||||
static Mutex CmsStepMutex = new Mutex(true, "{66fa29db-925a-402b-a4c7-d3d780fb1bc3}");
|
||||
//Set the Mutex of GUID
|
||||
static Mutex CmsStepClientMutex = new Mutex(true, "{66fa29db-925a-402b-a4c7-d3d780fb1bc3}");
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
@@ -51,7 +51,7 @@ namespace CMS_Client
|
||||
|
||||
|
||||
//Check if is already running an instance of this application
|
||||
if (!CmsStepMutex.WaitOne(TimeSpan.Zero, true))
|
||||
if (!CmsStepClientMutex.WaitOne(TimeSpan.Zero, true))
|
||||
ShowAlarmAndClose("Only one istance of " + Application.ProductName + " can be executed!");
|
||||
|
||||
Application.EnableVisualStyles();
|
||||
|
||||
Reference in New Issue
Block a user