@reactoo/watchtogether-sdk-js 2.7.63 → 2.7.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/models/iot.js
CHANGED
|
@@ -187,8 +187,9 @@ let iot = function () {
|
|
|
187
187
|
.then(() => this.__privates.iot.subscribe(topic))
|
|
188
188
|
.catch((error) => {
|
|
189
189
|
|
|
190
|
+
__currentTopics.delete(topic);
|
|
191
|
+
|
|
190
192
|
if(error?.cause === -1) {
|
|
191
|
-
__currentTopics.delete(topic);
|
|
192
193
|
return Promise.reject('invalid_topic');
|
|
193
194
|
}
|
|
194
195
|
|