From c47c0c2faf63156bdf208df89cc63bf19d0a995d Mon Sep 17 00:00:00 2001 From: robviren Date: Wed, 25 May 2022 19:40:12 -0500 Subject: [PATCH] Server Process Fix --- handlers.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/handlers.go b/handlers.go index 40601b1..865c7ed 100644 --- a/handlers.go +++ b/handlers.go @@ -15,7 +15,6 @@ import ( var server_sig = make(chan int, 1) var server_started = false -var server_process = exec.Command("xvfb-run", "-a", "wine", "/root/.wine/drive_c/vrisingserver/VRisingServer.exe") func check(err error) { if err != nil { @@ -126,6 +125,8 @@ func configure(c *gin.Context) { } func doIt() { + var server_process = exec.Command("xvfb-run", "-a", "wine", "/root/.wine/drive_c/vrisingserver/VRisingServer.exe") + err := server_process.Start() check(err)