void cancelActiveServices() { cancelConnectThread(); cancelConnectionMonitor(); if (m_started) { removeActivationListener(); } if (m_connectCntx != null) { m_connectCntx.reset(); } }
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(); } } }