Unlock mutex when failing to load model (#2117)
This commit is contained in:
parent
f32ea81b21
commit
89c4aee29e
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue