From 3743f08c1fb282d7321184430e122fd8f8e2b362 Mon Sep 17 00:00:00 2001 From: Juan Font Alonso Date: Thu, 22 Apr 2021 23:55:07 +0200 Subject: [PATCH] Minor fix on already defer db close --- api.go | 1 - 1 file changed, 1 deletion(-) diff --git a/api.go b/api.go index e78bdb9f..a8b7af09 100644 --- a/api.go +++ b/api.go @@ -194,7 +194,6 @@ func (h *Headscale) PollNetMapHandler(c *gin.Context) { m.LastSeen = &now } db.Save(&m) - db.Close() pollData := make(chan []byte, 1) update := make(chan []byte, 1)