Server Process Fix

This commit is contained in:
2022-05-25 19:40:12 -05:00
parent 8eab598895
commit c47c0c2faf

View File

@@ -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)