From ca470c662b2b43b6a65762a7f721cb1c0ca17478 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Sun, 11 Feb 2007 22:01:18 +0000 Subject: Update device state when accepting an incomming connection --- audio/headset.c | 1 + 1 file changed, 1 insertion(+) diff --git a/audio/headset.c b/audio/headset.c index 81f24f99..0591a8f8 100644 --- a/audio/headset.c +++ b/audio/headset.c @@ -424,6 +424,7 @@ static gboolean server_io_cb(GIOChannel *chan, GIOCondition cond, void *data) debug("Accepted connection from %s, %s", hs_address, hs->object_path); + hs->state = HEADSET_STATE_CONNECTED; hs_signal(hs, "Connected"); return TRUE; -- cgit