mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 10:26:53 +02:00
close server on receiving signal (#4213)
This commit is contained in:
parent
af47413dba
commit
39d9d22ca3
2 changed files with 7 additions and 1 deletions
|
@ -898,7 +898,12 @@ func RunServer(cmd *cobra.Command, _ []string) error {
|
|||
return err
|
||||
}
|
||||
|
||||
return server.Serve(ln)
|
||||
err = server.Serve(ln)
|
||||
if errors.Is(err, http.ErrServerClosed) {
|
||||
return nil
|
||||
}
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
func initializeKeypair() error {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue