altoslib: Flush output when disabling remote
authorKeith Packard <keithp@keithp.com>
Sat, 8 Aug 2020 04:51:39 +0000 (21:51 -0700)
committerKeith Packard <keithp@keithp.com>
Sat, 8 Aug 2020 04:51:39 +0000 (21:51 -0700)
This speeds up sending data to the other end.

Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib/AltosLink.java

index 9946b83586f18d082268fb86a0761da1ac92f7f9..b713b3dcc9cfebfb0bffc7f145c216b9aea0be79 100644 (file)
@@ -539,6 +539,7 @@ public abstract class AltosLink implements Runnable {
                if (debug)
                        System.out.printf("stop remote\n");
                try {
+                       flush_output();
                        flush_input();
                } finally {
                        printf ("~\n");