Make the warning on this condition based on whether the link is remote.
Signed-off-by: Keith Packard <keithp@keithp.com>
if (SwingUtilities.isEventDispatchThread()) {
can_cancel = false;
if (SwingUtilities.isEventDispatchThread()) {
can_cancel = false;
- System.out.printf("Uh-oh, reading serial device from swing thread\n");
+ if (remote)
+ System.out.printf("Uh-oh, reading remote serial device from swing thread\n");
}
flush_output();
if (remote && can_cancel) {
}
flush_output();
if (remote && can_cancel) {