mirror of
https://github.com/lifegpc/msg-tool.git
synced 2026-06-09 14:28:53 +08:00
Return error when create ThreadPool failed
This commit is contained in:
@@ -345,7 +345,7 @@ impl<'a> CbgDecoder<'a> {
|
||||
has_alpha: AtomicBool::new(false),
|
||||
});
|
||||
|
||||
let thread_pool = ThreadPool::new(self.workers, Some("cbg-decoder-worker-"));
|
||||
let thread_pool = ThreadPool::new(self.workers, Some("cbg-decoder-worker-"))?;
|
||||
let mut dst = 0i32;
|
||||
|
||||
for i in 0..y_blocks {
|
||||
|
||||
Reference in New Issue
Block a user