Skip to content

Commit 3256c01

Browse files
- Guard for out err file.
1 parent eb2d437 commit 3256c01

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/stackql/handler/handler.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,8 @@ func (hc *standardHandlerContext) GetRegistry() anysdk.RegistryAPI { return hc.r
203203
func (hc *standardHandlerContext) GetErrorPresentation() string { return hc.errorPresentation }
204204
func (hc *standardHandlerContext) GetOutfile() io.Writer { return hc.outfile }
205205
func (hc *standardHandlerContext) GetOutErrFile() io.Writer {
206+
defer hc.sessionCtxMutex.Unlock()
207+
hc.sessionCtxMutex.Lock()
206208
return hc.outErrFile
207209
}
208210
func (hc *standardHandlerContext) SetOutErrFile(w io.Writer) {

0 commit comments

Comments
 (0)