Skip to content

Commit

Permalink
Send all input fields for start message to the process
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpaljak committed Feb 29, 2016
1 parent 83929f9 commit f562620
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/apdu4j/remote/RemoteTerminal.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ public CardTerminal getCardTerminal() {
return terminal;
}

public void start() throws IOException {
public Map<String, Object> start() throws IOException {
// Read the first START message.
Map<String, Object> m = pipe.recv();
if (m.containsKey("cmd") && m.get("cmd").equals("START")) {
if (m.containsKey("lang") && m.get("lang").toString().matches("\\p{Lower}{2}")) {
lang = (String) m.get("lang");
}
return;
return m;
} else {
throw new IOException("Invalid START message");
}
Expand Down

0 comments on commit f562620

Please sign in to comment.