mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-10-27 02:51:17 +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()
|
||||
{
|
||||
// create the mutex
|
||||
_mutex = new Mutex(true, "WelsonJS.Launcher", out bool mutexNotExists);
|
||||
if (!mutexNotExists)
|
||||
_mutex = new Mutex(true, "WelsonJS.Launcher", out bool _createdNew);
|
||||
if (!_createdNew)
|
||||
{
|
||||
_logger.Error("WelsonJS Launcher already running.");
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user