Skip to content
Snippets Groups Projects
Commit f101e350 authored by Urs Graf's avatar Urs Graf
Browse files

Improve handling when disconnecting device

parent 146d3d41
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,7 @@ public class BoardTester implements Runnable {
// TODO Auto-generated catch block
e.printStackTrace();
}
if (isConnected) notifyViews();
notifyViews();
}
}
......
......@@ -78,8 +78,10 @@ public class Connection {
// else if (b == '\r') System.out.print("CR");
// else System.out.print((char)b);
}
} catch (IOException e) {
e.printStackTrace();
} catch (Exception e) {
model.isConnected = false;
close();
return null;
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment