Skip to content

Commit

Permalink
Trim output buffer more aggressively
Browse files Browse the repository at this point in the history
  • Loading branch information
rojer committed Aug 16, 2021
1 parent 99a993c commit 6ddcc56
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion HomeKitADK/HAP/HAPIPAccessoryServer.c
Original file line number Diff line number Diff line change
Expand Up @@ -3611,9 +3611,11 @@ static void WriteOutboundData(HAPIPSessionDescriptor* session) {
} else if (session->accessorySerializationIsInProgress) {
handle_accessory_serialization(session);
} else {
HAPIPByteBufferClear(b);
handle_output_completion(session);
}
if (session->state == kHAPIPSessionState_Reading) {
HAPIPByteBufferClear(b);
}
}
}
}
Expand Down

0 comments on commit 6ddcc56

Please sign in to comment.