예제 #1
0
 /** @syncpriority 200 */
 public synchronized void stop() {
   log.debug("SM for " + streamId + " stopping");
   if (broadcasting) stopBroadcast();
   if (rebroadcasting) stopRebroadcast();
   if (receiving) stopReception();
   listeners.clear();
   checkWantingSources();
   streamConns.closeAll();
   mina.getSmRegister().unregisterSM(streamId);
   if (pageBuf != null) {
     pageBuf.stop();
     pageBuf.close();
   }
 }