Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefuertes committed Nov 14, 2024
1 parent 27f8d1a commit 96adae7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Binary file removed executor
Binary file not shown.
4 changes: 3 additions & 1 deletion internal/commands/port.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ func Port(cfg *config.Config) error {
p.Start()

var err error
var conn net.Conn
for {
conn, err := net.DialTimeout("tcp", fmt.Sprintf("%s:%d", cfg.Host, cfg.Port), cfg.Timeout)
conn, err = net.DialTimeout("tcp", fmt.Sprintf("%s:%d", cfg.Host, cfg.Port), cfg.Timeout)
if err == nil {
_ = conn.Close()
break
}
if ctx.Done() != nil {
err = ctx.Err()
break
}
}
Expand Down

0 comments on commit 96adae7

Please sign in to comment.