Example #1
0
  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();
    }
  }
Example #2
0
 public void startStpThread() {
   stpThread.start();
 }