mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-10-27 02:51:17 +00:00
Fix mutex variable naming in Program.cs
Renamed the out variable from '_createdNew' to 'createdNew' for clarity and updated its usage in the mutex check. This improves code readability and consistency.
This commit is contained in:
parent
ecbe55cf80
commit
f3db44d8e3
|
|
@ -29,8 +29,8 @@ namespace WelsonJS.Launcher
|
||||||
static void Main()
|
static void Main()
|
||||||
{
|
{
|
||||||
// create the mutex
|
// create the mutex
|
||||||
_mutex = new Mutex(true, "WelsonJS.Launcher", out bool _createdNew);
|
_mutex = new Mutex(true, "WelsonJS.Launcher", out bool createdNew);
|
||||||
if (!_createdNew)
|
if (!createdNew)
|
||||||
{
|
{
|
||||||
_logger.Error("WelsonJS Launcher already running.");
|
_logger.Error("WelsonJS Launcher already running.");
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user