Skip to content

Commit

Permalink
fix: start tailscale in go routine
Browse files Browse the repository at this point in the history
Signed-off-by: Toma Puljak <[email protected]>
  • Loading branch information
Tpuljak committed Dec 13, 2024
1 parent a24abb9 commit c2561af
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pkg/agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,12 @@ func (a *Agent) Start() error {
}
}()

err := a.Tailscale.Start()
if err != nil {
return err
}
go func() {
err := a.Tailscale.Start()
if err != nil {
errChan <- err
}
}()

log.Info("Daytona Agent started")
return <-errChan
Expand Down

0 comments on commit c2561af

Please sign in to comment.