Skip to content

Commit

Permalink
fixed example app crash
Browse files Browse the repository at this point in the history
  • Loading branch information
kai-morich committed Apr 2, 2021
1 parent f1d73c0 commit c917ac5
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,10 @@ private void connect() {
private void disconnect() {
connected = false;
controlLines.stop();
if(usbIoManager != null)
if(usbIoManager != null) {
usbIoManager.setListener(null);
usbIoManager.stop();
}
usbIoManager = null;
try {
usbSerialPort.close();
Expand Down

0 comments on commit c917ac5

Please sign in to comment.