File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1+ patch package= "livekit-ffi" type= "fixed" "Fix RPC invocation race bug"
Original file line number Diff line number Diff line change @@ -140,6 +140,8 @@ async fn forward_rpc_method_invocation(
140140 let ( tx, rx) = oneshot:: channel ( ) ;
141141 let invocation_id = server. next_id ( ) ;
142142
143+ room. store_rpc_method_invocation_waiter ( invocation_id, tx) ;
144+
143145 let _ = server. send_event ( proto:: ffi_event:: Message :: RpcMethodInvocation (
144146 proto:: RpcMethodInvocationEvent {
145147 local_participant_handle : local_participant_handle as u64 ,
@@ -152,8 +154,6 @@ async fn forward_rpc_method_invocation(
152154 } ,
153155 ) ) ;
154156
155- room. store_rpc_method_invocation_waiter ( invocation_id, tx) ;
156-
157157 rx. await . unwrap_or_else ( |_| {
158158 Err ( RpcError {
159159 code : RpcErrorCode :: ApplicationError as u32 ,
You can’t perform that action at this time.
0 commit comments