Skip to content

Commit 67b28a7

Browse files
committed
Use a goroutine to detach the restart from the request
1 parent 14f88c9 commit 67b28a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,5 @@ func updateHandler(c *gin.Context) {
6060
}
6161

6262
c.JSON(200, gin.H{"success": "Please wait a moment while the agent reboots itself"})
63-
restart(path)
63+
go restart(path)
6464
}

0 commit comments

Comments
 (0)