Compare commits

..

No commits in common. "main" and "v0.1.15" have entirely different histories.

2 changed files with 1 additions and 5 deletions

@ -21,10 +21,6 @@ func (c *Client) IsReachable() bool {
// and returns true as soon as IsReachable returns true.
// When ctx is closed before Hyprland is reachable, false is returned
func (c *Client) WaitUntilReachable(ctx context.Context) bool {
if c.IsReachable() {
return true
}
ticker := time.NewTicker(100 * time.Millisecond)
defer ticker.Stop()

@ -96,7 +96,7 @@ func WaitForClient(ctx context.Context, signature string) (*Client, error) {
return nil, err
}
if !client.WaitUntilReachable(context.Background()) {
if client.WaitUntilReachable(context.Background()) {
return nil, errors.New("hyprland not reachable")
}