Skip to content

Commit

Permalink
raise exception when ffi_client.request returns INVALID_HANDLE
Browse files Browse the repository at this point in the history
  • Loading branch information
theomonnom committed Jan 15, 2024
1 parent 755478d commit 8bc8216
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions livekit-rtc/livekit/rtc/_ffi_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ def request(self, req: proto_ffi.FfiRequest) -> proto_ffi.FfiResponse:
handle = ffi_lib.livekit_ffi_request(
data, proto_len, ctypes.byref(resp_ptr), ctypes.byref(resp_len)
)
assert handle != INVALID_HANDLE

resp_data = bytes(resp_ptr[: resp_len.value])
resp = proto_ffi.FfiResponse()
Expand Down

0 comments on commit 8bc8216

Please sign in to comment.