diff --git a/examples/src/OpenDis7Examples/PduListenerSaver.java b/examples/src/OpenDis7Examples/PduListenerSaver.java index 271a5276e008a32266d9bb296884315eb3fbf01d..9a763350ab6bb199587d1d994a15d654876dcdfc 100644 --- a/examples/src/OpenDis7Examples/PduListenerSaver.java +++ b/examples/src/OpenDis7Examples/PduListenerSaver.java @@ -67,12 +67,21 @@ public class PduListenerSaver if (line.equalsIgnoreCase("p") && state == mystate.RUNNING) { recorder.stopPause(); state = mystate.PAUSED; + System.out.println("... now PAUSED"); + } + else if (line.equalsIgnoreCase("p")) { + System.out.println("... still PAUSED"); } else if (line.equalsIgnoreCase("r") && state == mystate.PAUSED) { recorder.startResume(); state = mystate.RUNNING; + System.out.println("... now RUNNING"); + } + else if (line.equalsIgnoreCase("r")) { + System.out.println("... still RUNNING"); } else if (line.equalsIgnoreCase("q")) { + System.out.println("... QUIT"); recorder.end(); break; }