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)
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>

No differences found