summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorratchov <ratchov@openbsd.org>2011-06-03 18:09:25 +0000
committerratchov <ratchov@openbsd.org>2011-06-03 18:09:25 +0000
commit192c50e59d41391fe8f9aea34f15106097559df7 (patch)
tree05e262550452f57ab7c06df25edaac9138ba4b72
parentAllow device encoding to be set if -u is also used. Useful to degrade (diff)
downloadwireguard-openbsd-192c50e59d41391fe8f9aea34f15106097559df7.tar.xz
wireguard-openbsd-192c50e59d41391fe8f9aea34f15106097559df7.zip
don't forget to send the initial clock tick
-rw-r--r--lib/libsndio/sio_aucat.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libsndio/sio_aucat.c b/lib/libsndio/sio_aucat.c
index 8186298d967..a3f9472993d 100644
--- a/lib/libsndio/sio_aucat.c
+++ b/lib/libsndio/sio_aucat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sio_aucat.c,v 1.6 2011/05/02 22:32:29 ratchov Exp $ */
+/* $OpenBSD: sio_aucat.c,v 1.7 2011/06/03 18:09:25 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -100,6 +100,10 @@ sio_aucat_runmsg(struct sio_aucat_hdl *hdl)
DPRINTF("aucat: pos = %d, maxwrite = %d\n",
delta, hdl->maxwrite);
hdl->delta = delta;
+ if (hdl->delta >= 0) {
+ sio_onmove_cb(&hdl->sio, hdl->delta);
+ hdl->delta = 0;
+ }
break;
case AMSG_MOVE:
delta = ntohl(hdl->aucat.rmsg.u.ts.delta);