@ray-js/robot-data-stream 0.0.10-beta-23 → 0.0.10-beta-24

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.
@@ -632,6 +632,9 @@ export class SweeperP2p extends P2pApi {
632
632
  // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, consistent-return
633
633
  stopObserverSweeperDataByP2P = () => {
634
634
  try {
635
+ logger('info', {
636
+ msg: `isConnected: ${this.isConnected}, devId: ${this.devId}`
637
+ }, this.onLogger);
635
638
  if (this.isConnected) {
636
639
  logger('info', {
637
640
  msg: `try disconnect device, devId: ${this.devId}`
package/lib/index.js CHANGED
@@ -143,11 +143,11 @@ const useP2PDataStream = (devId, onReceiveMapData, onReceivePathData, opt) => {
143
143
  msg: 'hooks has been started unmount'
144
144
  }, onLogger);
145
145
  isInit.current = false;
146
+ SweeperP2pInstance.stopObserverSweeperDataByP2P();
146
147
  if (offSessionStatusChange.current) {
147
148
  offSessionStatusChange.current();
148
149
  offSessionStatusChange.current = null;
149
150
  }
150
- SweeperP2pInstance.stopObserverSweeperDataByP2P();
151
151
  };
152
152
  return {
153
153
  appendDownloadStreamDuringTask: SweeperP2pInstance.appendDownloadStreamDuringTask
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/robot-data-stream",
3
- "version": "0.0.10-beta-23",
3
+ "version": "0.0.10-beta-24",
4
4
  "description": "扫地机P2P数据流标准化组件",
5
5
  "main": "lib/index",
6
6
  "files": [