summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-02-11 22:01:18 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-02-11 22:01:18 +0000
commitca470c662b2b43b6a65762a7f721cb1c0ca17478 (patch)
treea18c806b5a572911a5a018b61bf17d917fcee4ce
parenta9dc7333cfb0d248d7c8486362bfdfd3a8fb32e5 (diff)
Update device state when accepting an incomming connection
-rw-r--r--audio/headset.c1
1 files changed, 1 insertions, 0 deletions
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;