Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b1fbf531 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Cleanup L2CAP socket properly on close"

parents b7ec9e28 690d8fda
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -283,6 +283,11 @@ static void btsock_l2cap_free_l(l2cap_socket *sock)
                BTA_JvFreeChannel(sock->channel, BTA_JV_CONN_TYPE_L2CAP_LE);
            else
                BTA_JvFreeChannel(sock->channel, BTA_JV_CONN_TYPE_L2CAP);

            if (!sock->fixed_chan) {
                APPL_TRACE_DEBUG("%s stopping L2CAP server channel %d", __func__, sock->channel);
                BTA_JvL2capStopServer(sock->channel, UINT_TO_PTR(sock->id));
            }
        }
    }