altosui: Clean up serial close handling
authorKeith Packard <keithp@keithp.com>
Sat, 7 Dec 2013 17:53:10 +0000 (09:53 -0800)
committerKeith Packard <keithp@keithp.com>
Sat, 7 Dec 2013 17:53:10 +0000 (09:53 -0800)
commit407696f11ac1736e840c9b702592c46197d14c2c
tree34c77c25a41e4f5097a6addccec725ce19454e45
parent1a47532f411488f003726aa9365ede5dc90c5b78
altosui: Clean up serial close handling

Unify serial close processing in a single function (close_serial),
make everyone else call that. This avoids a couple of cases where the
device would be closed and not removed from the devices_opened list,
leading to 'device is already in use' messages.

Signed-off-by: Keith Packard <keithp@keithp.com>
altosui/AltosSerial.java