File tree Expand file tree Collapse file tree
crates/tauri/src/protocol Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ tauri : " patch:bug"
3+ ---
4+
5+ Fixed an issue that caused iOS apps to panic with an async ` run() ` entrypoint.
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ fn get_response<R: Runtime>(
122122 for ( name, value) in request. headers ( ) {
123123 proxy_builder = proxy_builder. header ( name, value) ;
124124 }
125- match crate :: async_runtime:: block_on ( proxy_builder. send ( ) ) {
125+ match crate :: async_runtime:: safe_block_on ( proxy_builder. send ( ) ) {
126126 Ok ( r) => {
127127 let mut response_cache_ = response_cache. lock ( ) . unwrap ( ) ;
128128 let mut response = None ;
@@ -134,7 +134,7 @@ fn get_response<R: Runtime>(
134134 } else {
135135 let status = r. status ( ) ;
136136 let headers = r. headers ( ) . clone ( ) ;
137- let body = crate :: async_runtime:: block_on ( r. bytes ( ) ) ?;
137+ let body = crate :: async_runtime:: safe_block_on ( r. bytes ( ) ) ?;
138138 let response = CachedResponse {
139139 status,
140140 headers,
You can’t perform that action at this time.
0 commit comments