mirror of
https://github.com/onyx-and-iris/xair-cli.git
synced 2026-04-09 02:13:35 +00:00
enable errcheck linter
This commit is contained in:
@@ -87,11 +87,14 @@ func (c *client) StartListening() {
|
||||
}
|
||||
|
||||
// Close stops the client and closes the connection.
|
||||
func (c *client) Close() {
|
||||
func (c *client) Close() error {
|
||||
close(c.done)
|
||||
if c.conn != nil {
|
||||
c.conn.Close()
|
||||
if err := c.conn.Close(); err != nil {
|
||||
return fmt.Errorf("failed to close connection: %w", err)
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// SendMessage sends an OSC message to the mixer using the unified connection.
|
||||
|
||||
Reference in New Issue
Block a user