Skip to content

Commit

Permalink
End of stream error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
avatarneil committed Jul 19, 2018
1 parent bef54e2 commit 16c4284
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
/build
.idea/

nbproject/private/private\.xml
2 changes: 1 addition & 1 deletion manifest.mf
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ Manifest-Version: 1.0
AutoUpdate-Show-In-Client: true
OpenIDE-Module: zipcar.emulator.uart
OpenIDE-Module-Localizing-Bundle: zipcar/emulator/uart/Bundle.properties
OpenIDE-Module-Specification-Version: 1.7.2
OpenIDE-Module-Specification-Version: 1.7.3

7 changes: 0 additions & 7 deletions nbproject/private/private.xml

This file was deleted.

3 changes: 2 additions & 1 deletion src/zipcar/emulator/uart/Uart.java
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ public void update() {
chars.add((byte) response.read());
}
} catch (IOException e) {
messageHandler.outputMessage("Exception reading character from res " + e);
messageHandler.outputMessage("Can't read from response socket, reopening socket...");
openSockets();
return;
}
if (!chars.isEmpty()) {
Expand Down

0 comments on commit 16c4284

Please sign in to comment.