Fix ring buffer overflow due to missed keys

This commit is contained in:
Mark
2020-06-11 19:28:36 +03:00
parent d34e0c4faa
commit 99d4bd642c
+1 -3
View File
@@ -97,9 +97,7 @@ int ring_putc(struct thread *ctx, struct ring *ring, char c, int wait) {
ring->base[ring->wr] = c;
ring_advance_write(ring);
if (ring->flags & RING_RAW) {
thread_notify_io(&ring->wait);
}
thread_notify_io(&ring->wait);
return 0;
}