public void shutdown() { // This can get called twice if we get a DISCONNECTED exception when closing down Opera. Check // if we're already shutting down and bail. if (shuttingDown) { return; } shuttingDown = true; if (connection != null) { connection.close(); } stpThread.shutdown(); try { stpThread.join(); } catch (InterruptedException ex) { Thread.currentThread().interrupt(); } }
public void startStpThread() { stpThread.start(); }