From 8ab9641cf5dd0dad697e9e0a902ed43b126dd591 Mon Sep 17 00:00:00 2001 From: Simon Rauch Date: Wed, 29 Apr 2020 12:15:59 +0200 Subject: [PATCH] remove reconnect timeout --- index.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/index.js b/index.js index 4059af1..e9fb6ba 100644 --- a/index.js +++ b/index.js @@ -90,18 +90,10 @@ class ProjectorAccessory { this.log('Socket error') this.error = true this.updateStatus(0) - - if (!this.reconnectTimeout) { - this.reconnectTimeout = true - this.connect() - setTimeout(() => { - this.reconnectTimeout = false - }, CONNECTION_TIMEOUT) - } + this.connect() } handleData(data) { - this.log(data.toString()) if (this.messageInData(data, UP_MESSAGES)) { this.log('Received UP message.') this.updateStatus(1)