mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-10-27 11:01:16 +00:00
Rename mutex out parameter for clarity
Changed the out parameter name from 'mutexNotExists' to '_createdNew' in the Mutex constructor for improved readability and clarity in the Main method.
This commit is contained in:
parent
d3ecbd7ebe
commit
ecbe55cf80
|
|
@ -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 mutexNotExists);
|
_mutex = new Mutex(true, "WelsonJS.Launcher", out bool _createdNew);
|
||||||
if (!mutexNotExists)
|
if (!_createdNew)
|
||||||
{
|
{
|
||||||
_logger.Error("WelsonJS Launcher already running.");
|
_logger.Error("WelsonJS Launcher already running.");
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user