diff --git a/commands.go b/commands.go index e673f02..a9d5c74 100644 --- a/commands.go +++ b/commands.go @@ -36,6 +36,13 @@ func IsReady(ctx context.Context, socket string) <-chan bool { go func() { defer close(out) + conn, err := net.Dial("unix", socket) + if err == nil { + defer conn.Close() + out <- true + return + } + ticker := time.NewTicker(100 * time.Millisecond) defer ticker.Stop()