mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
add a check that at least 1 thread works for slowJobPool and for every configuration
This commit is contained in:
parent
6e6878ca9e
commit
49e5fe96df
@ -66,7 +66,7 @@ impl InternalSlowJobPool {
|
||||
running_jobs: RwLock::new(HashMap::new()),
|
||||
configs: RwLock::new(HashMap::new()),
|
||||
global_running_jobs: Arc::new(AtomicU64::new(0)),
|
||||
global_limit,
|
||||
global_limit: global_limit.max(1),
|
||||
threadpool,
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user