Update device state when accepting an incomming connection

This commit is contained in:
Johan Hedberg 2007-02-11 22:01:18 +00:00
parent a9dc7333cf
commit ca470c662b

View File

@ -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;