Emulator response to empty command is sent twice
---
gatchat/gatserver.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/gatchat/gatserver.c b/gatchat/gatserver.c
index 3a996cb..a29e489 100644
--- a/gatchat/gatserver.c
+++ b/gatchat/gatserver.c
@@ -1008,6 +1008,9 @@ static void new_bytes(struct ring_buffer *rbuf, gpointer user_data)
unsigned char *buf = ring_buffer_read_ptr(rbuf, p->read_so_far);
enum ParserResult result;
+ if (p->in_read_handler)
+ return;
+
p->in_read_handler = TRUE;
while (p->io && (p->read_so_far < len)) {
--
1.7.1