@ray-js/robot-data-stream 0.0.7 → 0.0.8

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.
Files changed (2) hide show
  1. package/lib/index.js +1 -0
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -105,6 +105,7 @@ const useP2PDataStream = (devId, onReceiveMapData, onReceivePathData, opt) => {
105
105
  const onEnterForeground = () => {
106
106
  ty.onAppShow(() => {
107
107
  log4js.info('hooks onAppShow');
108
+ timer.current && clearTimeout(timer.current);
108
109
  setTimeout(() => {
109
110
  var _ty$p2p$isP2PActiveSy, _ty$p2p;
110
111
  if (!isInit.current || !((_ty$p2p$isP2PActiveSy = (_ty$p2p = ty.p2p).isP2PActiveSync) !== null && _ty$p2p$isP2PActiveSy !== void 0 && _ty$p2p$isP2PActiveSy.call(_ty$p2p, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/robot-data-stream",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "扫地机P2P数据流标准化组件",
5
5
  "main": "lib/index",
6
6
  "files": [