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

Commit b39a8272 authored by Jason Sams's avatar Jason Sams
Browse files

Fix behavior where the non-blocking sendToCliend would block

when there was enough room for the message but not the message header.

Change-Id: I600db04b91e76fa7966c7d8a98e5c56593e1806d
parent 2184abfe
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -798,7 +798,7 @@ bool Context::sendMessageToClient(void *data, uint32_t cmdID, size_t len, bool w
        return false;
    }
    if (!waitForSpace) {
        if (mIO.mToClient.getFreeSpace() < len) {
        if (mIO.mToClient.getFreeSpace() <= (len + 8)) {
            // Not enough room, and not waiting.
            return false;
        }