enable errcheck linter

This commit is contained in:
2026-02-15 15:12:29 +00:00
parent c8cfef858c
commit 4ed567e464
5 changed files with 31 additions and 9 deletions

View File

@@ -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.