public void checkForActiveFrostWire(){
  if (testForFrostWire(null)) {
    System.exit(0);
  }
}

public void checkForActiveFrostWire ( ) { if ( testForFrostWire ( null ) ) { System . exit ( 0 ) ; } }
uses the magnet infrastructure to check if frostwire is running . if it is , it is restored and this instance exits . note that the already - running frostwire is not checked for ' allow multiple instances ' - - only the instance that was just started .
