Skip to content

Commit c13069d

Browse files
runspacelock fix
1 parent d41775c commit c13069d

File tree

5 files changed

+6
-2
lines changed

5 files changed

+6
-2
lines changed

PSFramework/PSFramework.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
RootModule = 'PSFramework.psm1'
55

66
# Version number of this module.
7-
ModuleVersion = '1.13.418'
7+
ModuleVersion = '1.13.419'
88

99
# ID used to uniquely identify this module
1010
GUID = '8028b914-132b-431f-baa9-94a6952f21ff'

PSFramework/bin/PSFramework.dll

0 Bytes
Binary file not shown.

PSFramework/bin/PSFramework.pdb

0 Bytes
Binary file not shown.

PSFramework/changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## 1.13.419 (2025-11-24)
4+
5+
- Fix: Get-PSFRunspaceLock - Fails to create new runspace lock.
6+
37
## 1.13.418 (2025-11-17)
48

59
- New: Get-PSFRunspaceLock - Create or retrieve a lock object for runspace use.

library/PSFramework/Runspace/RunspaceHost.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public static RunspaceLock GetRunspaceLock(string Name)
103103
{
104104
lock (_Lock)
105105
{
106-
if (null == Locks[Name])
106+
if (!Locks.ContainsKey(Name))
107107
Locks[Name] = new RunspaceLock(Name);
108108
}
109109
return Locks[Name];

0 commit comments

Comments
 (0)