@Override protected void terminating() { super.terminating(); AudioServer s = server; server = null; if (s != null) { s.shutdown(); } BusClient b = bus; bus = null; if (b != null) { b.disconnectAll(); } }
@Override protected void stopping() { if (bus == null) { return; } // setInterrupt(new Runnable() { // public void run() { server.shutdown(); bus.disconnectAll(); server = null; bus = null; busListener = null; // } // }); interrupt(); }