Diff between 6dfd0d376ff222eb7da283ece7f88a1cc6f4a0c0 and 08b4eb63871e0908ce34b44e97c4ffffb9edd861
Changed Files
| File | Additions | Deletions | Status |
| android/sco.c | +1 | -11 | modified |
Full Patch
diff --git a/android/sco.c b/android/sco.c
index 7dd7013..e8ac685 100644
--- a/android/sco.c
+++ b/android/sco.c
@@ -310,18 +310,8 @@ void bt_sco_disconnect(struct bt_sco *sco)
if (!sco)
return;
- if (sco->watch) {
- g_source_remove(sco->watch);
- sco->watch = 0;
- }
-
- if (sco->io) {
+ if (sco->io)
g_io_channel_shutdown(sco->io, TRUE, NULL);
- g_io_channel_unref(sco->io);
- sco->io = NULL;
- }
-
- clear_remote_address(sco);
}
bool bt_sco_get_fd_and_mtu(struct bt_sco *sco, int *fd, uint16_t *mtu)