예제 #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();
   }
 }
예제 #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();
 }