diff options
author | Uwe Stuehler <uwe@cvs.openbsd.org> | 2008-11-24 08:49:23 +0000 |
---|---|---|
committer | Uwe Stuehler <uwe@cvs.openbsd.org> | 2008-11-24 08:49:23 +0000 |
commit | e59ae2209b1a5160fe3a18cee1dec8a9f604ac18 (patch) | |
tree | f6468d41c91dfacdfac3049d50ff95be5c95e873 /sys/dev | |
parent | d31aedf981e3d044892b77eabbb97270edef8cdf (diff) |
Respond to incoming connections, not only after we initiated the first one.
Someone must have fumbled with this line by accident while doing the
original port of the driver.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/bluetooth/bthidev.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/bluetooth/bthidev.c b/sys/dev/bluetooth/bthidev.c index 5fba488ab96..32d88a637e0 100644 --- a/sys/dev/bluetooth/bthidev.c +++ b/sys/dev/bluetooth/bthidev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bthidev.c,v 1.4 2008/11/22 04:42:58 uwe Exp $ */ +/* $OpenBSD: bthidev.c,v 1.5 2008/11/24 08:49:22 uwe Exp $ */ /* $NetBSD: bthidev.c,v 1.16 2008/08/06 15:01:23 plunky Exp $ */ /*- @@ -639,6 +639,7 @@ bthidev_ctl_disconnected(void *arg, int err) if (sc->sc_int == NULL) { printf("%s: disconnected\n", sc->sc_btdev.sc_dev.dv_xname); + sc->sc_flags &= ~BTHID_CONNECTING; if (sc->sc_flags & BTHID_RECONNECT) timeout_add(&sc->sc_reconnect, |