summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
2f9be00)
Flight log management exceptions were getting displayed from the log
serial I/O thread instead of the swing thread. That's a bad plan.
Signed-off-by: Keith Packard <keithp@keithp.com>
AltosEepromManage manage;
public void run () {
AltosEepromManage manage;
public void run () {
try {
flights = new AltosEepromList(serial_line, remote);
try {
flights = new AltosEepromList(serial_line, remote);
- Runnable r = new Runnable() {
- manage.got_flights(flights);
- SwingUtilities.invokeLater(r);
- manage.got_exception(e);
+ final Exception f_e = e;
+ r = new Runnable() {
+ public void run() {
+ got_exception(f_e);
+ }
+ };
+ SwingUtilities.invokeLater(r);
}
public EepromGetList(AltosEepromManage in_manage) {
}
public EepromGetList(AltosEepromManage in_manage) {