Compare commits

..

1 Commits

Author SHA1 Message Date
Josh Arrington 55fbda53ca
Merge 87f36167f3 into 8ffe66a1bc 2025-02-07 00:00:48 -06:00
3 changed files with 1 additions and 17 deletions

View File

@ -68,11 +68,6 @@ func handleCloudRegister(c *gin.Context) {
return
}
if config.CloudToken == "" {
logger.Info("Starting websocket client due to adoption")
go RunWebsocketClient()
}
config.CloudToken = tokenResp.SecretToken
config.CloudURL = req.CloudAPI

View File

@ -66,11 +66,7 @@ func Main() {
}()
//go RunFuseServer()
go RunWebServer()
// If the cloud token isn't set, the client won't be started by default.
// However, if the user adopts the device via the web interface, handleCloudRegister will start the client.
if config.CloudToken != "" {
go RunWebsocketClient()
}
go RunWebsocketClient()
sigs := make(chan os.Signal, 1)
signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM)
<-sigs

View File

@ -11,7 +11,6 @@ import (
"os"
"os/exec"
"sync"
"syscall"
"time"
"github.com/pion/webrtc/v4/pkg/media"
@ -225,12 +224,6 @@ func ExtractAndRunNativeBin() error {
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
// Set the process group ID so we can kill the process and its children when this process exits
cmd.SysProcAttr = &syscall.SysProcAttr{
Setpgid: true,
Pdeathsig: syscall.SIGKILL,
}
// Start the command
if err := cmd.Start(); err != nil {
return fmt.Errorf("failed to start binary: %w", err)