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)