You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will result in stop the reconnectTimer in the second call, which has just been started by the first one (if there is a little time cap). This will stop the device to be reconnected.
Move the clearTimerout inside the if like so
if (this._socketConnected !== value) {
clearTimeout(this.reconnectTimeout);
If you switch off a device and wait until ping will mark the device as disconnected, sockerConnected(false) will be called twice becaus of:
This will result in stop the reconnectTimer in the second call, which has just been started by the first one (if there is a little time cap). This will stop the device to be reconnected.
Move the clearTimerout inside the if like so
see: https://github.com/Nafaya/esphome-native-api/blob/main/lib/connection.js#L110-L115
The text was updated successfully, but these errors were encountered: