summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/libsndio/aucat.c4
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