don't send new stuff while receiving debug
authornotaz <notasas@gmail.com>
Tue, 21 Oct 2014 22:05:58 +0000 (01:05 +0300)
committernotaz <notasas@gmail.com>
Sat, 25 Oct 2014 17:18:15 +0000 (20:18 +0300)
host/main.c

index 8f76844..f8f74c9 100644 (file)
@@ -994,6 +994,12 @@ int main(int argc, char *argv[])
         /* debug text */
         buf_dbg[reaped_urb->actual_length] = 0;
         printf("%s", buf_dbg);
+
+        // continue receiving debug before sending out stuff
+        tout.tv_sec = 0;
+        tout.tv_usec = 1000;
+        timeout = &tout;
+        continue;
       }
       else {
         fprintf(stderr, "reaped unknown urb? %p #%zu\n",