File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ wry : patch
3+ ---
4+
5+ On Android, fixed panics on custom protocol timeouts. Increased timeout for non-internal requests to 30 seconds.
Original file line number Diff line number Diff line change @@ -279,7 +279,9 @@ impl InnerWebView {
279279 } ) ;
280280
281281 ( custom_protocol_handler) ( webview_id, request, RequestAsyncResponder { responder } ) ;
282- return Some ( rx. recv_timeout ( MAIN_PIPE_TIMEOUT ) . unwrap ( ) ) ;
282+ // 3x the timeout while we monitor https://github.com/tauri-apps/wry/issues/1551
283+ // TODO: Remove timeout
284+ return rx. recv_timeout ( MAIN_PIPE_TIMEOUT * 3 ) . inspect_err ( |e| { eprintln ! ( "custom protocol timed out: {e}" ) ; } ) . ok ( ) ;
283285 }
284286 None
285287 } ,
@@ -493,7 +495,7 @@ pub fn platform_webview_version() -> Result<String> {
493495 }
494496 } ;
495497 MainPipe :: send ( activity_id, WebViewMessage :: GetWebViewVersion ( tx) ) ;
496- rx. recv_timeout ( MAIN_PIPE_TIMEOUT ) . unwrap ( )
498+ rx. recv_timeout ( MAIN_PIPE_TIMEOUT ) ?
497499}
498500
499501/// Finds a class in the project scope.
You can’t perform that action at this time.
0 commit comments