All pastes #760747 Raw Edit

Stuff

public text v1 · immutable
·published 2007-11-04 08:34 UTC
rendered paste body
  def stop {
    ignoreException(()=>DeviceService.exit)
    ignoreException(()=>FriendRelationService.exit)
    ignoreException(()=>EventService.exit)
    ignoreException(()=>UserService.exit)
  }
  
  private def ignoreException(f : ()=>unit) {
    try {
      f();
    } catch {
      case e:Exception => println("Caught")
    }
  }