Skip to content

Commit

Permalink
* (Apollon77) Another fix on reconnect handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollon77 committed Jul 17, 2021
1 parent 1ed5c6c commit 2adc867
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ Best is to set the adapter to Debug log mode (Instances -> Expert mode -> Column

## Changelog

### __WORK IN PROGRESS__
* (Apollon77) Another fix on reconnect handling

### 3.6.6 (2021-07-17)
* (Apollon77) Fix reconnect handling
* (Apollon77) More schema information added
Expand Down
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ function discoverLocalDevices() {
return;
}
if (!data.payload || !data.payload.gwId || data.commandByte !== CommandType.UDP) return;
if (knownDevices[data.payload.gwId] && knownDevices[data.payload.gwId].device) return;
if (knownDevices[data.payload.gwId] && knownDevices[data.payload.gwId].device && !knownDevices[data.payload.gwId].reconnectTimeout) return;
initDevice(data.payload.gwId, data.payload.productKey, data.payload, ['name']);
});
server.on('error', err => {
Expand Down

0 comments on commit 2adc867

Please sign in to comment.