Maintain old ping behavior

This commit is contained in:
E1int
2025-08-09 23:42:19 +02:00
parent ef8f0f0454
commit 6d4897bc1c
+4 -2
View File
@@ -30,8 +30,10 @@ func Connect() (*Client, error) {
}
func (c *Client) Ping() error {
_, err := c.sendRequest(PingPath)
return err
if _, err := c.sendRequest(PingPath); err != nil {
return ErrPingFail
}
return nil
}
func (c *Client) Play() error {