mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-10 15:57:04 +00:00
Unlock mutex when failing to load model (#2117)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user