ensure we return closer from run()

This commit is contained in:
2026-02-16 00:11:50 +00:00
parent c22b07808f
commit 3be7ddb36b
2 changed files with 35 additions and 27 deletions

View File

@@ -140,6 +140,6 @@ func (r Rcon) listen(timeout time.Duration, respChan chan<- string, errChan chan
}
}
func (r Rcon) Close() {
r.conn.Close()
func (r Rcon) Close() error {
return r.conn.Close()
}