Skip to content

Commit 818e9e4

Browse files
authored
raise exception when ffi_client.request returns INVALID_HANDLE (#145)
1 parent 755478d commit 818e9e4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

livekit-rtc/livekit/rtc/_ffi_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ def request(self, req: proto_ffi.FfiRequest) -> proto_ffi.FfiResponse:
193193
handle = ffi_lib.livekit_ffi_request(
194194
data, proto_len, ctypes.byref(resp_ptr), ctypes.byref(resp_len)
195195
)
196+
assert handle != INVALID_HANDLE
196197

197198
resp_data = bytes(resp_ptr[: resp_len.value])
198199
resp = proto_ffi.FfiResponse()

0 commit comments

Comments
 (0)