Skip to content

Commit cc1c103

Browse files
committed
Refactor OnInit method to simplify semaphore handling
1 parent e952c03 commit cc1c103

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/iop/cls/IOP/Common.cls

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,7 @@ Method DisplayTraceback(ex) As %Status
8686
Method OnInit() As %Status
8787
{
8888
set tSC = $$$OK
89-
set tSemName = "^PythonSettings"
90-
if $SYSTEM.Semaphore.Open(tSemName) '= 1 {
91-
// Create the semaphore if it does not exist
92-
set tSC = $SYSTEM.Semaphore.Create(tSemName)
93-
}
89+
9490
try {
9591
LOCK +^PythonSettings:5
9692

0 commit comments

Comments
 (0)