aboutsummaryrefslogtreecommitdiff
path: root/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'server.go')
-rw-r--r--server.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/server.go b/server.go
index aea5982..e3ed460 100644
--- a/server.go
+++ b/server.go
@@ -5,6 +5,7 @@
package kbbi
import (
+ "context"
"fmt"
"log"
stdhttp "net/http"
@@ -109,7 +110,7 @@ func (server *Server) Start() (err error) {
// Shutdown the HTTP server and save the cache for future use.
//
func (server *Server) Shutdown() (err error) {
- err = server.http.Shutdown(nil)
+ err = server.http.Shutdown(context.TODO())
server.stopped <- true