fix(bundler): deadlock on ResourcePaths iterator, closes #3146 (#3152)

This commit is contained in:
Lucas Fernandes Nogueira 2022-01-02 14:28:07 -03:00 committed by GitHub
parent 62182383de
commit 4c1be45106
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,5 @@
---
"tauri-bundler": patch
---
Fixes a deadlock on the `ResourcePaths` iterator.

View File

@ -795,6 +795,7 @@ impl<'a> Iterator for ResourcePaths<'a> {
return Some(Ok(path));
} else if let Some(current_path) = &self.current_pattern {
if !self.current_pattern_is_valid {
self.glob_iter = None;
return Some(Err(crate::Error::GenericError(format!(
"Path matching '{}' not found",
current_path