Skip to content

Commit

Permalink
Update zp.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ebaauw committed Jul 12, 2021
1 parent 08bdd16 commit 0aac5df
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions cli/zp.js
Original file line number Diff line number Diff line change
Expand Up @@ -796,16 +796,11 @@ class Main extends homebridgeLib.CommandLineTool {
id: zonePlayer.id,
timeout: this._clargs.options.timeout
})
zpClient.on('error', (error, id, method, resource, body, url) => {
this.log('request %d: %s %s', id, method, resource)
this.error('request %d: error %s', id, error)
})
jobs.push(zpClient.init()
.then(() => {
result[id] = zpClient.info
}).catch((error) => {
}).catch(() => {
delete result[id]
this.error('%s: %s', zonePlayer.address, error)
})
)
}
Expand Down

0 comments on commit 0aac5df

Please sign in to comment.