I have the following small method in my code. spt is a
thread. Why doesn't isInterrupted() always return true? It always prints "false".
Rebecca
public void stopSegment( ) {
if (segmentPlaying){
segmentTimer.stop( );
segmentLine.stop();
segmentLine.flush();
segmentLine.close();
spt.interrupt();
boolean interrupted = spt.isInterrupted();
spt = null;
System.out.println("Spt is interrupted is " + interrupted);
segmentPlaying = false;
}
}