app/src/main/java/com/moral/yunfushao/fragment/FragmentMonitor.java
@@ -55,7 +55,6 @@
import com.moral.yunfushao.ui.PanelView;
import com.moral.yunfushao.utils.AudioUtils;
import com.moral.yunfushao.utils.DebugUtils;
import com.moral.yunfushao.utils.T;
import org.greenrobot.eventbus.EventBus;
import org.greenrobot.eventbus.Subscribe;
@@ -136,7 +135,6 @@
    private Runnable reconnectRunnable = new Runnable() {
        @Override
        public void run() {
            System.out.println("chenqi 立刻重连");
            //重连
            if (mBluetoothService == null) {
                return;
@@ -259,7 +257,7 @@
                            }
                        });
                //重置handler
                resetHandler();
                HEARTTIMES = 2;
                //发送心跳
                heart();
            }
@@ -348,15 +346,13 @@
    public void onResume() {
        super.onResume();
        isMySelfPage = true;
        reconnect();
        textShowMac();
    }
    @Override
    public void onPause() {
        super.onPause();
        //暂停的时候不检测
        T.show("onPause");
        System.out.println("chenqi onPause");
        isMySelfPage = false;
        stopReconnect();
    }
@@ -364,6 +360,7 @@
    @Override
    public void onDestroy() {
        super.onDestroy();
        System.out.println("chenqi onDestroy");
        EventBus.getDefault().unregister(this);
        if (timer != null) {
            timer.cancel();
@@ -526,14 +523,11 @@
            handler.postDelayed(reconnectRunnable, 0);
        }
    }
    /**
     * 停止重连
     */
    private void stopReconnect() {
        handler.removeCallbacks(reconnectRunnable);
        if (mBluetoothService != null)
            mBluetoothService.closeConnect();
    }
    private void resetHandler() {