Esempio n. 1
0
 @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();
   }
 }
Esempio n. 2
0
 @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();
 }