don't block l2cap credits intended for the client if rfcomm send blocks temporarily - creates deadlock otherwise

This commit is contained in:
matthias.ringwald 2011-11-02 09:41:15 +00:00
parent 5a00087a13
commit fe868c3f89

View File

@ -341,9 +341,6 @@ static int daemon_client_handler(connection_t *connection, uint16_t packet_type,
case RFCOMM_DATA_PACKET:
// process l2cap packet...
err = rfcomm_send_internal(channel, data, length);
if (err == BTSTACK_ACL_BUFFERS_FULL) {
l2cap_block_new_credits(1);
}
break;
case DAEMON_EVENT_PACKET:
switch (data[0]) {