From 67b28a7fadd69ba93e30c34cb9aebdc5bd9fc316 Mon Sep 17 00:00:00 2001 From: Matteo Suppo Date: Wed, 13 Apr 2016 14:21:27 +0200 Subject: [PATCH] Use a goroutine to detach the restart from the request --- update.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update.go b/update.go index b662e7cc5..25fcdbea4 100644 --- a/update.go +++ b/update.go @@ -60,5 +60,5 @@ func updateHandler(c *gin.Context) { } c.JSON(200, gin.H{"success": "Please wait a moment while the agent reboots itself"}) - restart(path) + go restart(path) }