isInterrupted anstatt Endlosschleife