Unverified Commit 89c4aee2 authored by Jeffrey Morgan's avatar Jeffrey Morgan Committed by GitHub
Browse files

Unlock mutex when failing to load model (#2117)

parent f32ea81b
......@@ -141,6 +141,7 @@ func newDynExtServer(library, model string, adapters, projectors []string, opts
defer freeExtServerResp(initResp)
C.dyn_llama_server_init(llm.s, &sparams, &initResp)
if initResp.id < 0 {
mutex.Unlock()
return nil, extServerResponseToErr(initResp)
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment