Skip to content

Commit

Permalink
3.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollon77 committed Dec 26, 2019
1 parent 561078d commit 88f55f2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions alexa-wsmqtt.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class AlexaWsMqtt extends EventEmitter {
this.websocket.on('error', (error) => {
this._options.logger && this._options.logger('Alexa-Remote WS-MQTT: Error: ' + error);
this.emit('error', error);
this.websocket.terminate();
this.websocket && this.websocket.terminate();
});

this.websocket.on('unexpected-response', (request, response) => {
Expand Down Expand Up @@ -170,7 +170,7 @@ class AlexaWsMqtt extends EventEmitter {
this.pongTimeout = setTimeout(() => {
this.pongTimeout = null;
this._options.logger && this._options.logger('Alexa-Remote WS-MQTT: No Pong received after 30s');
this.websocket.close();
this.websocket && this.websocket.close();
}, 30000);
}, 180000);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "alexa-remote2",
"version": "3.0.1",
"version": "3.0.2",
"description": "Remote Control for amazon echo devices",
"author": {
"name": "Apollon77",
Expand Down
3 changes: 3 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ Thank you for that work.

## Changelog:

### 3.0.2 (2019-12-26)
* (Apollon77) Prevent some errors

### 3.0.1 (2019-12-24)
* (Apollon77) Prevent some errors, dependency update

Expand Down

0 comments on commit 88f55f2

Please sign in to comment.