threadpool: panic if a worker thread cannot be spawned (#826)

This commit is contained in:
Stjepan Glavina
2019-01-05 10:53:38 -05:00
committed by Toby Lawrence
parent 78d1fe0eb0
commit df299ced45
+2 -1
View File
@@ -397,7 +397,8 @@ impl Pool {
});
if let Err(e) = res {
warn!("failed to spawn worker thread; err={:?}", e);
error!("failed to spawn worker thread; err={:?}", e);
panic!("failed to spawn worker thread: {:?}", e);
}
}