Skip to content

Commit 64eaa0a

Browse files
committed
fix: allow getting program while run is running
Signed-off-by: Donnie Adams <donnie@acorn.io>
1 parent 1aaa032 commit 64eaa0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

run.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ func (r *Run) Err() error {
8181

8282
// Program returns the gptscript program for the run.
8383
func (r *Run) Program() *Program {
84-
r.lock.Lock()
85-
defer r.lock.Unlock()
84+
r.callsLock.Lock()
85+
defer r.callsLock.Unlock()
8686
return r.program
8787
}
8888

0 commit comments

Comments
 (0)