Skip to content

Commit 64849f6

Browse files
committed
Merge pull request #87 from arduino/fixrestart
Use a goroutine to detach the restart from the request
2 parents 14f88c9 + 67b28a7 commit 64849f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

update.go

+1-1
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)