summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2009-03-12 07:26:05 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2009-03-12 07:26:05 +0000
commit406cac47aeec68b6da9dc6a1186e3e63599a8923 (patch)
tree5ce280a2c3c3cf9fe078b17e26ce354672f15341
parent0fc26d0d67b020513fcbd6547e2357334c72512f (diff)
in full-duplex, don't send AMSG_MOVE messages twice; instead,
send only the record direction one. spotted by jakemsr
-rw-r--r--usr.bin/aucat/sock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/aucat/sock.c b/usr.bin/aucat/sock.c
index 5c7e07d2c7c..6a1c222af97 100644
--- a/usr.bin/aucat/sock.c
+++ b/usr.bin/aucat/sock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sock.c,v 1.14 2009/02/06 08:29:35 ratchov Exp $ */
+/* $OpenBSD: sock.c,v 1.15 2009/03/12 07:26:04 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -127,7 +127,7 @@ rsock_opos(struct aproc *p, struct abuf *obuf, int delta)
{
struct sock *f = (struct sock *)p->u.io.file;
- if (!(f->mode & AMSG_PLAY))
+ if (f->mode & AMSG_REC)
return;
f->delta += delta;