@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.
- package/lib/index.js +1 -0
- 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, {
|