From 0aac5dfae37374095ca29e6962c4d16a15efc6e9 Mon Sep 17 00:00:00 2001 From: ebaauw Date: Mon, 12 Jul 2021 21:10:39 +0200 Subject: [PATCH] Update zp.js --- cli/zp.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/cli/zp.js b/cli/zp.js index 8eaa811..a9e5b3d 100755 --- a/cli/zp.js +++ b/cli/zp.js @@ -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) }) ) }