diff options
author | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2007-07-10 13:34:57 +0000 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2007-07-10 13:34:57 +0000 |
commit | 66d48b0ac25c85de354f26782a377d0ad91bd322 (patch) | |
tree | 973a2c30fa6609a8fa10b7d99c150ef476f7b142 /audio/gateway.c | |
parent | df235d1f395b10654024979180c778777bd50c71 (diff) |
Code cleanup.
Diffstat (limited to 'audio/gateway.c')
-rw-r--r-- | audio/gateway.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/audio/gateway.c b/audio/gateway.c index afdcbe01..3b84462d 100644 --- a/audio/gateway.c +++ b/audio/gateway.c @@ -314,7 +314,8 @@ static void auth_cb(DBusPendingCall *call, void *data) send_cancel_auth(device); } dbus_error_free(&err); - headset_close_rfcomm(device); + + headset_set_state(device, HEADSET_STATE_DISCONNECTED); } else { char hs_address[18]; @@ -407,6 +408,7 @@ static gboolean gateway_io_cb(GIOChannel *chan, GIOCondition cond, void *data) dbus_pending_call_set_notify(pending, auth_cb, device, NULL); dbus_pending_call_unref(pending); dbus_message_unref(auth); + headset_set_state(device, HEADSET_STATE_CONNECT_IN_PROGRESS); return TRUE; |