Skip to content

Commit 4c1be45

Browse files
authored
fix(bundler): deadlock on ResourcePaths iterator, closes #3146 (#3152)
1 parent 6218238 commit 4c1be45

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changes/fix-deadlock-path-iter.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri-bundler": patch
3+
---
4+
5+
Fixes a deadlock on the `ResourcePaths` iterator.

tooling/bundler/src/bundle/settings.rs

+1
Original file line numberDiff line numberDiff line change
@@ -795,6 +795,7 @@ impl<'a> Iterator for ResourcePaths<'a> {
795795
return Some(Ok(path));
796796
} else if let Some(current_path) = &self.current_pattern {
797797
if !self.current_pattern_is_valid {
798+
self.glob_iter = None;
798799
return Some(Err(crate::Error::GenericError(format!(
799800
"Path matching '{}' not found",
800801
current_path

0 commit comments

Comments
 (0)