コード例 #1
0
  void cancelActiveServices() {
    cancelConnectThread();
    cancelConnectionMonitor();

    if (m_started) {
      removeActivationListener();
    }
    if (m_connectCntx != null) {
      m_connectCntx.reset();
    }
  }
コード例 #2
0
 private void startConnect() {
   try {
     cancelConnectThread();
     initConnector();
     m_connectThread = new ConnectThread();
     m_connectThread.start();
   } catch (Exception e) {
     m_connectException = e;
     if (m_connectListener != null) {
       m_connectListener.handleException();
     }
   }
 }