diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2009-02-18 07:32:28 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2009-02-18 07:32:28 +0000 |
commit | 4d8169cb26e3d0448d0395f902c8da069cf7bd0b (patch) | |
tree | 10f78dfad3d626c082d3c7c01d2fd59cad744c2d | |
parent | 633543b497a9e6a0629164d9d2ac4603ca9ea1a8 (diff) |
in aucat_stop(), after the STOP message was send, put the receiver
in ``waiting state'', otherwise the ACK message will be skipped,
and the other functions not expecting ACKs might be confused by
the ACK.
-rw-r--r-- | lib/libsndio/aucat.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libsndio/aucat.c b/lib/libsndio/aucat.c index 7936a8319e4..e9b46957daa 100644 --- a/lib/libsndio/aucat.c +++ b/lib/libsndio/aucat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aucat.c,v 1.13 2009/02/04 07:54:00 ratchov Exp $ */ +/* $OpenBSD: aucat.c,v 1.14 2009/02/18 07:32:27 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org> * @@ -304,6 +304,8 @@ aucat_stop(struct sio_hdl *sh) hdl->wtodo = sizeof(struct amsg); if (!aucat_wmsg(hdl)) return 0; + hdl->rstate = STATE_MSG; + hdl->rtodo = sizeof(struct amsg); /* * wait for the STOP ACK |