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

Commit 6890be17 authored by Zhenye Zhu's avatar Zhenye Zhu Committed by Andre Eisenbach
Browse files

Fixed wrong return condition when all RFCOMM data was sent succesfully

Bug: 16566991
Change-Id: I4e0d2487b71e2d8ad8e571e88d2623db2852bb1e
parent f4506ab5
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -864,6 +864,8 @@ static BOOLEAN flush_incoming_que_on_wr_signal(rfc_slot_t* rs)
                btsock_thread_add_fd(pth, rs->fd, BTSOCK_RFCOMM, SOCK_THREAD_FD_WR, rs->id);
                btsock_thread_add_fd(pth, rs->fd, BTSOCK_RFCOMM, SOCK_THREAD_FD_WR, rs->id);
                return TRUE;
                return TRUE;
            case SENT_ALL:
            case SENT_ALL:
                list_remove(rs->incoming_queue, p_buf);
                break;
            case SENT_FAILED:
            case SENT_FAILED:
                list_remove(rs->incoming_queue, p_buf);
                list_remove(rs->incoming_queue, p_buf);
                return FALSE;
                return FALSE;