Skip to content
Snippets Groups Projects
Commit e5538979 authored by Brutzman, Don's avatar Brutzman, Don
Browse files

Scanner rename to scannerTerminalKeyboard for clarity

parent ec103d31
No related branches found
No related tags found
No related merge requests found
......@@ -67,11 +67,11 @@ public class PduListenerSaver
try {
PduRecorder recorder = new PduRecorder(outputDirectory, multicastAddress, multicastPort); // assumes save
mystate state = mystate.RUNNING;
Scanner scan = new Scanner(System.in);
Scanner scannerTerminalKeyboard = new Scanner(System.in);
while (true) {
System.out.println("Type p/enter to pause, r/enter to resume, q/enter to quit");
String line = scan.nextLine();
String line = scannerTerminalKeyboard.nextLine();
if (line.equalsIgnoreCase("p") && state == mystate.RUNNING) {
recorder.stopPause();
state = mystate.PAUSED;
......
......@@ -72,11 +72,11 @@ public class PduReaderPlayer
PduPlayer pduPlayer = new PduPlayer(multicastAddress, multicastPort, Path.of(outputDirectory), sendToNet);
pduPlayer.startResume();
mystate state = mystate.RUNNING;
Scanner scan = new Scanner(System.in);
Scanner scannerTerminalKeyboard = new Scanner(System.in);
while (true) {
System.out.println("Type p/enter to pause, r/enter to resume, q/enter to quit");
String line = scan.nextLine();
String line = scannerTerminalKeyboard.nextLine();
if (line.equalsIgnoreCase("p") && state == mystate.RUNNING) {
pduPlayer.stopPause();
state = mystate.PAUSED;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment